mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 13:14:32 +02:00
Tools: Add missing DTR/RTS set before serial port open on reconnect when --no-reset is used
This makes sure --no-reset works correctly when the monitor reconnects the serial port.
This commit is contained in:
@@ -76,6 +76,10 @@ class SerialReader(Reader):
|
||||
while self.alive: # so that exiting monitor works while waiting
|
||||
try:
|
||||
time.sleep(RECONNECT_DELAY)
|
||||
if not self.reset:
|
||||
self.serial.dtr = low # Non reset state
|
||||
self.serial.rts = high # IO0=HIGH
|
||||
self.serial.dtr = self.serial.dtr # usbser.sys workaround
|
||||
self.serial.open()
|
||||
break # device connected
|
||||
except serial.serialutil.SerialException:
|
||||
|
Reference in New Issue
Block a user