Changed communication speed to 115200 (better for debugging).

This commit is contained in:
2026-02-21 15:09:16 +01:00
parent e4e3a22924
commit c1bc52c5a3
3 changed files with 3 additions and 4 deletions

View File

@@ -63,7 +63,6 @@ def findPort():
for port in com_ports_list:
if port[0].startswith("/dev/ttyUSB"):
ebb_port = port[0] # Success; EBB found by name match.
#raise Exception(ebb_port)
break # stop searching-- we are done.
for port in com_ports_list:
if port[1].startswith("EiBotBoard"):
@@ -284,7 +283,7 @@ def testPort(port_name):
"""
if port_name is not None:
try:
serial_port = serial.Serial(port_name, timeout=1.0) # 1 second timeout!
serial_port = serial.Serial(port_name, timeout=1.0, baudrate=115200) # 1 second timeout!
serial_port.flushInput() # deprecated function name;
# use serial_port.reset_input_buffer()