diff --git a/Python/tx_speed.py b/Python/tx_speed.py index 93085f1..fdf3944 100644 --- a/Python/tx_speed.py +++ b/Python/tx_speed.py @@ -16,9 +16,9 @@ try: port = 'ttyACM' while not arduino_connected: ports = getoutput(f'ls /dev | grep {port}').split('\n') - if ports != [''] + if ports != ['']: ports.sort() - port = ports[len(x) - 1] + port = ports[len(ports) - 1] arduino_connected = True link = txfer.SerialTransfer(port, 115200, timeout=.1)