From 901128d8ca45146c52009bd948835d2ec37fe797 Mon Sep 17 00:00:00 2001 From: askiiart Date: Tue, 25 Oct 2022 17:17:12 -0500 Subject: [PATCH] Fix minor stuff --- Python/tx_speed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)