mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 13:14:32 +02:00
Tools: Set idf.py monitor DTR to the default state when reset is not needed
This lets use the reset hotkey (Ctrl+T Ctrl+R). Tools: fix idf.py monitor reset with hotkey with --no-reset arg Tools: Set idf.py monitor DTR to the default state when reset is not needed
This commit is contained in:
@@ -57,6 +57,8 @@ class SerialReader(Reader):
|
|||||||
|
|
||||||
# Add a delay to meet the requirements of minimal EN low time (2ms for ESP32-C3)
|
# Add a delay to meet the requirements of minimal EN low time (2ms for ESP32-C3)
|
||||||
time.sleep(MINIMAL_EN_LOW_DELAY)
|
time.sleep(MINIMAL_EN_LOW_DELAY)
|
||||||
|
elif not self.reset:
|
||||||
|
self.serial.setDTR(high) # IO0=HIGH, default state
|
||||||
self.gdb_exit = False
|
self.gdb_exit = False
|
||||||
self.serial.rts = high # Set rts/dtr to the working state
|
self.serial.rts = high # Set rts/dtr to the working state
|
||||||
self.serial.dtr = self.serial.dtr # usbser.sys workaround
|
self.serial.dtr = self.serial.dtr # usbser.sys workaround
|
||||||
|
Reference in New Issue
Block a user