Changed communication speed to 115200 (better for debugging).
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user