[nrf52] allow to download mcumgr image if exists (#19769)

thanks
This commit is contained in:
tomaszduda23
2026-09-27 16:14:37 +02:00
committed by GitHub
parent 97f362a718
commit a91023e87c
+9 -9
View File
@@ -514,15 +514,15 @@ def get_download_types(storage_json: StorageJSON) -> list[dict[str, str]]:
"download": f"{storage_json.name}.hex", "download": f"{storage_json.name}.hex",
}, },
] ]
if (build_dir / APP_IMAGE_PATH).is_file(): if (build_dir / APP_IMAGE_PATH).is_file():
types += [ types += [
{ {
"title": "App update package", "title": "App update package",
"description": "For flashing via mcumgr-web using BLE or smpclient using USB CDC.", "description": "For flashing via mcumgr-web using BLE or smpclient using USB CDC.",
"file": APP_IMAGE_PATH, "file": APP_IMAGE_PATH,
"download": f"app-{storage_json.name}.img", "download": f"app-{storage_json.name}.img",
}, },
] ]
return types return types