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:
parent
e59951c8ae
commit
343de9c454
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue