mirror of
https://github.com/esphome/esphome.git
synced 2025-04-08 20:00:27 +01:00
small fix
This commit is contained in:
parent
2ed45759cc
commit
957e01f466
@ -105,14 +105,13 @@ def choose_upload_log_host(
|
|||||||
ble_logger = False
|
ble_logger = False
|
||||||
ota = "ota" in CORE.config
|
ota = "ota" in CORE.config
|
||||||
options = []
|
options = []
|
||||||
|
prefix = ""
|
||||||
if mcuboot and show_ota and ota:
|
if mcuboot and show_ota and ota:
|
||||||
for port in get_serial_ports():
|
prefix = "mcumgr "
|
||||||
options.append(
|
for port in get_serial_ports():
|
||||||
(f"mcumgr {port.path} ({port.description})", f"mcumgr {port.path}")
|
options.append(
|
||||||
)
|
(f"{prefix}{port.path} ({port.description})", f"{prefix}{port.path}")
|
||||||
else:
|
)
|
||||||
for port in get_serial_ports():
|
|
||||||
options.append((f"{port.path} ({port.description})", port.path))
|
|
||||||
if default == "SERIAL":
|
if default == "SERIAL":
|
||||||
return choose_prompt(options, purpose=purpose)
|
return choose_prompt(options, purpose=purpose)
|
||||||
if default == "PYOCD":
|
if default == "PYOCD":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user