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:
Nonoo
2022-05-16 08:54:20 +02:00
parent ad747b237a
commit c063cbd7f7

View File

@@ -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