From c1bc52c5a38f053acb996b9b947987a9991fbc17 Mon Sep 17 00:00:00 2001 From: Holger Weber Date: Sat, 21 Feb 2026 15:09:16 +0100 Subject: [PATCH] Changed communication speed to 115200 (better for debugging). --- inkscape/linux/patch/ebb_serial.py | 3 +-- platformio.ini | 2 +- src/main.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/inkscape/linux/patch/ebb_serial.py b/inkscape/linux/patch/ebb_serial.py index 71fdb2d..64082ac 100644 --- a/inkscape/linux/patch/ebb_serial.py +++ b/inkscape/linux/patch/ebb_serial.py @@ -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() diff --git a/platformio.ini b/platformio.ini index 94d1dc8..b059e7d 100644 --- a/platformio.ini +++ b/platformio.ini @@ -12,7 +12,7 @@ platform = platformio/espressif32 board = esp32dev framework = arduino -monitor_speed = 9600 +monitor_speed = 115200 upload_speed = 576000 upload_port = /dev/ttyUSB* lib_deps = diff --git a/src/main.cpp b/src/main.cpp index 5dc446a..22fb72d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -75,7 +75,7 @@ boolean motorsEnabled = 0; void setup() { - Serial.begin(9600); + Serial.begin(115200); Serial.println("Starting..."); Log("Starting..."); makeComInterface();