From 343de9c454e0f68a1ff5a12d745575b2e5150897 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 11 Jun 2016 16:35:48 -0400 Subject: [PATCH] serialhdl: Avoid using 1200 baud during serial reset The Arduino Due uses a 1200 baud connection to signal an erase sequence, so avoid it during normal serial resets. Signed-off-by: Kevin O'Connor --- klippy/serialhdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/serialhdl.py b/klippy/serialhdl.py index 80e29b96..cac2ef9f 100644 --- a/klippy/serialhdl.py +++ b/klippy/serialhdl.py @@ -273,7 +273,7 @@ def stk500v2_leave(ser): logging.debug("Starting stk500v2 leave programmer sequence") origbaud = ser.baudrate # Request a dummy speed first as this seems to help reset the port - ser.baudrate = 1200 + ser.baudrate = 2400 ser.read(1) # Send stk500v2 leave programmer sequence ser.baudrate = 115200