Fix minor stuff

This commit is contained in:
askiiart 2022-10-25 17:17:12 -05:00
parent f1c66a8864
commit 901128d8ca

View file

@ -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)