feature_lsp_com #8

Merged
musabe24 merged 17 commits from feature_lsp_com into main 2024-07-18 12:26:59 +02:00
Showing only changes of commit be2a4a8c24 - Show all commits

View File

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