Fix minor stuff
This commit is contained in:
parent
f1c66a8864
commit
901128d8ca
1 changed files with 2 additions and 2 deletions
|
@ -16,9 +16,9 @@ try:
|
||||||
port = 'ttyACM'
|
port = 'ttyACM'
|
||||||
while not arduino_connected:
|
while not arduino_connected:
|
||||||
ports = getoutput(f'ls /dev | grep {port}').split('\n')
|
ports = getoutput(f'ls /dev | grep {port}').split('\n')
|
||||||
if ports != ['']
|
if ports != ['']:
|
||||||
ports.sort()
|
ports.sort()
|
||||||
port = ports[len(x) - 1]
|
port = ports[len(ports) - 1]
|
||||||
arduino_connected = True
|
arduino_connected = True
|
||||||
|
|
||||||
link = txfer.SerialTransfer(port, 115200, timeout=.1)
|
link = txfer.SerialTransfer(port, 115200, timeout=.1)
|
||||||
|
|
Loading…
Reference in a new issue