Allow "--device SERIAL" on cli to flash only via serial (#5351)

This commit is contained in:
Jesse Hills 2023-09-07 13:22:39 +12:00 committed by GitHub
parent 72f29b1283
commit 87395d259e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,8 @@ def choose_upload_log_host(
options = []
for port in get_serial_ports():
options.append((f"{port.path} ({port.description})", port.path))
if default == "SERIAL":
return choose_prompt(options, purpose=purpose)
if (show_ota and "ota" in CORE.config) or (show_api and "api" in CORE.config):
options.append((f"Over The Air ({CORE.address})", CORE.address))
if default == "OTA":