mirror of
https://github.com/MikronMIK32/mik32-uploader.git
synced 2026-01-01 05:27:05 +03:00
Исправлен выбор порта аргументом --openocd-port
This commit is contained in:
parent
0f156e9dad
commit
9a36170cea
@ -225,6 +225,11 @@ def upload_file(
|
||||
segments: List[Segment] = file.get_segments()
|
||||
pages: Pages = form_pages(segments, boot_mode)
|
||||
|
||||
try:
|
||||
port = int(port)
|
||||
except ValueError:
|
||||
print("An integer argument --openocd-port was expected!")
|
||||
|
||||
proc: Union[subprocess.Popen, None] = None
|
||||
if is_run_openocd:
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user