diff --git a/main.py b/main.py index 60f12e2..e169483 100644 --- a/main.py +++ b/main.py @@ -262,20 +262,17 @@ class ArduinoGUI: if (port not in used_ports) and (serPort == None): serPort = port pass - pass else: for i in range(256): port = f'/dev/ttyS{i}' if (port not in used_ports) and (serPort == None): serPort = port pass - pass for i in range(256): port = f'/dev/ttyUSB{i}' if (port not in used_ports) and (serPort == None): serPort = port pass - pass if serPort != None: self.ser = serial.Serial(serPort, 19200, timeout=1)