mirror of
https://github.com/MikronMIK32/mik32-uploader.git
synced 2026-01-01 13:37:03 +03:00
cleanup
This commit is contained in:
parent
77ce067841
commit
ffd52233b8
@ -233,10 +233,7 @@ def upload_file(
|
||||
except OSError as e:
|
||||
raise OpenOCDStartupException(e)
|
||||
try:
|
||||
# time.sleep(0.1)
|
||||
|
||||
with OpenOcdTclRpc(host, port) as openocd:
|
||||
print('try beginning')
|
||||
if (all(openocd_interface.find(i) == -1 for i in adapter_speed_not_supported)):
|
||||
openocd.run(f"adapter speed {adapter_speed}")
|
||||
openocd.run(f"log_output \"{log_path}\"")
|
||||
|
||||
@ -54,10 +54,7 @@ class OpenOcdTclRpc:
|
||||
def __enter__(self):
|
||||
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
try:
|
||||
# self.sock.connect((self.host, self.port))
|
||||
self.wait_for_port()
|
||||
# except Exception as e:
|
||||
# print(e)
|
||||
except socket.timeout:
|
||||
logger.debug("Test connection timed out, try again")
|
||||
self.sock.close()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user