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: for port in com_ports_list:
if port[0].startswith("/dev/ttyUSB"): if port[0].startswith("/dev/ttyUSB"):
ebb_port = port[0] # Success; EBB found by name match. ebb_port = port[0] # Success; EBB found by name match.
#raise Exception(ebb_port)
break # stop searching-- we are done. break # stop searching-- we are done.
for port in com_ports_list: for port in com_ports_list:
if port[1].startswith("EiBotBoard"): if port[1].startswith("EiBotBoard"):
@@ -284,7 +283,7 @@ def testPort(port_name):
""" """
if port_name is not None: if port_name is not None:
try: 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; serial_port.flushInput() # deprecated function name;
# use serial_port.reset_input_buffer() # use serial_port.reset_input_buffer()

View File

@@ -12,7 +12,7 @@
platform = platformio/espressif32 platform = platformio/espressif32
board = esp32dev board = esp32dev
framework = arduino framework = arduino
monitor_speed = 9600 monitor_speed = 115200
upload_speed = 576000 upload_speed = 576000
upload_port = /dev/ttyUSB* upload_port = /dev/ttyUSB*
lib_deps = lib_deps =

View File

@@ -75,7 +75,7 @@ boolean motorsEnabled = 0;
void setup() void setup()
{ {
Serial.begin(9600); Serial.begin(115200);
Serial.println("Starting..."); Serial.println("Starting...");
Log("Starting..."); Log("Starting...");
makeComInterface(); makeComInterface();