Skip to content

Commit 0539a96

Browse files
authored
Merge pull request #961 from anton-vinogradov/ota-update-skip-node-db
Skip node DB fetch during --ota-update / --reboot-ota
2 parents 445e17d + ef9cdc3 commit 0539a96

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

meshtastic/__main__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,6 +1590,12 @@ def common():
15901590
if not os.path.isfile(args.ota_update):
15911591
meshtastic.util.our_exit(f"Error: OTA firmware file not found: {args.ota_update}", 1)
15921592

1593+
# OTA (WiFi/BLE) only needs the local node to send the admin request and then
1594+
# streams the firmware directly; it never reads the node DB. Skip fetching it so a
1595+
# large node DB dump can't stall/close the connection before the OTA request lands.
1596+
if getattr(args, "ota_update", None) or getattr(args, "reboot_ota", False):
1597+
args.no_nodes = True
1598+
15931599
if have_powermon:
15941600
create_power_meter()
15951601

0 commit comments

Comments
 (0)