ESPSomfy-RTS/test/test_radioreadiness
R. Sid Shaytay 60d1872f35
Report a dead radio clearly, retry receive once and drop stale repeats
A frequency scan was accepted when the radio was enabled but had failed its
checks, and the client waited for results that never came. It is now refused
with radioUnavailable: "The radio is disabled" or "The radio did not
respond". Generic boards are unchanged (available() equals config.enabled).

One missed switch into RX after a transmission or scan used to disable the
radio until reboot. startReceive() now goes idle and calls SetRx once more
(RADIO_RX_ATTEMPTS = 2, decided by radioRxOutcome) and gives up only after
that. Repeater frames are dropped while the integrated radio is unavailable
instead of being retried and sent stale later.

Serial output in startReceive(), checkBoardRadio() and BoardProfile moves to
ESP_LOG*, and the per-transmission RF switch readback is gone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 18:50:41 -08:00
..
test_radioreadiness.cpp Report a dead radio clearly, retry receive once and drop stale repeats 2026-11-14 18:50:41 -08:00