Apply infrastructure radio changes after a two-second reply handoff

Persist set freq and set radio atomically, then apply through the existing safe radio scheduler without rebooting. Retain the old tuple until the delay and reply handoff finish, including queued room/sensor replies and TX-complete callbacks. End temporary sessions when accepting a permanent change.

Display applied RF settings even when radio2 is off. Share radio validation across immediate and scheduled setters to preserve STM32 Mini flash capacity. Update command documentation, regression coverage, and CI.

Validated production timing, persistence, display, CLI, fleet/reply, RX, sleep and Morse regressions. W12 repeater, room-server and sensor builds pass. Canonical STM32 Mini Repeater passes flash and RAM admission with 448 bytes of flash remaining. Physical W12 RF testing was not performed.
This commit is contained in:
mikecarper committed 2026-10-26 00:38:13 -07:00
1 parent c98684021a
commit 4f76345b67
22 files changed
+414 -67

No files matched your search

+7 -2
View File
@@ -1877,7 +1877,10 @@ existing Companion apps. On dual-radio builds, use `get radio2` and
**Note:** Companion USB, BLE and WebConfig changes apply automatically when
the radio is free. A busy radio keeps the saved target across disconnects.
Infrastructure retains its reboot-to-apply behavior. Companion LoRa CLI waits
Infrastructure saves immediately, waits two seconds, then applies when the radio
is free and its reply has drained. No reboot is needed; a permanent change ends
pending or active TempRadio sessions. The device screen shows the applied radio
settings during the wait. Companion LoRa CLI waits
for the exact reply copies to drain before applying; active TempRadio leases
reject this permanent change.
If RXPS is enabled and the saved minimum
@@ -2065,7 +2068,9 @@ preamble. LoRa OTA treats v1.17.1.5 as that capability boundary.
**Default:** `869.618`
**Note:** Companion local changes apply automatically when the radio is free.
Infrastructure requires a reboot to apply. Companion LoRa CLI applies after
Infrastructure saves immediately and switches after two seconds, once the radio
is free and its reply has drained. No reboot is needed. This ends pending or
active TempRadio sessions. Companion LoRa CLI applies after
its exact reply copies drain; an active TempRadio lease rejects the change.
**Connections:** USB, browser/TCP/Ethernet CLI, Companion binary command