mirror of
https://github.com/MikronMIK32/mik32-uploader.git
synced 2026-01-01 13:37:03 +03:00
fixed connection attempt before openocd init
This commit is contained in:
parent
ffd52233b8
commit
6c5bbd58d4
@ -233,6 +233,7 @@ def upload_file(
|
||||
except OSError as e:
|
||||
raise OpenOCDStartupException(e)
|
||||
try:
|
||||
time.sleep(0.1)
|
||||
with OpenOcdTclRpc(host, port) as openocd:
|
||||
if (all(openocd_interface.find(i) == -1 for i in adapter_speed_not_supported)):
|
||||
openocd.run(f"adapter speed {adapter_speed}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user