mirror of
https://github.com/espressif/esptool.git
synced 2025-10-21 23:30:34 +08:00
fix(espefuse): Use stub class if stub flasher is running
Closes https://github.com/espressif/esptool/issues/982
This commit is contained in:
@@ -94,6 +94,8 @@ def get_esp(
|
|||||||
)
|
)
|
||||||
if not skip_connect:
|
if not skip_connect:
|
||||||
esp.connect(connect_mode)
|
esp.connect(connect_mode)
|
||||||
|
if esp.sync_stub_detected:
|
||||||
|
esp = esp.STUB_CLASS(esp)
|
||||||
return esp
|
return esp
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user