mirror of
https://github.com/espressif/esptool.git
synced 2025-10-19 20:13:00 +08:00
fix(remote_ports): Disable reset sequence when a socket is used
Closes https://github.com/espressif/esp-idf/issues/14200
This commit is contained in:
@@ -708,6 +708,14 @@ class ESPLoader(object):
|
||||
"Connection may fail if the chip is not in bootloader "
|
||||
"or flasher stub mode.",
|
||||
)
|
||||
|
||||
if self._port.name.startswith("socket:"):
|
||||
mode = "no_reset" # not possible to toggle DTR/RTS over a TCP socket
|
||||
print(
|
||||
"Note: It's not possible to reset the chip over a TCP socket. "
|
||||
"Resetting to bootloader has been disabled."
|
||||
)
|
||||
|
||||
print("Connecting...", end="")
|
||||
sys.stdout.flush()
|
||||
last_error = None
|
||||
|
Reference in New Issue
Block a user