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 <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2016-06-11 16:35:48 -04:00
parent e59951c8ae
commit 343de9c454
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ def stk500v2_leave(ser):
logging.debug("Starting stk500v2 leave programmer sequence") logging.debug("Starting stk500v2 leave programmer sequence")
origbaud = ser.baudrate origbaud = ser.baudrate
# Request a dummy speed first as this seems to help reset the port # Request a dummy speed first as this seems to help reset the port
ser.baudrate = 1200 ser.baudrate = 2400
ser.read(1) ser.read(1)
# Send stk500v2 leave programmer sequence # Send stk500v2 leave programmer sequence
ser.baudrate = 115200 ser.baudrate = 115200