Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Polling receive, AGC or channel activity while a transmit is in progress can restart/sleep the radio or consume its pending TxDone interrupt as an incoming packet. Reject those operations, and a second transmit, until the existing send is finalized. The guard also preserves a completion interrupt that the dispatcher has not consumed yet.
The regression compiles the production RadioLib wrapper against a deterministic backend. It covers active TX and pending TxDone, verifies that no receive/CAD/read/reset/new-send side effects occur, and checks that RX, CAD and subsequent sends resume after completion. It runs with sanitizers in the unit-test workflow.
Validation:
python test/radiolib_state/run.py(Windows): passed.python3 test/radiolib_state/run.py --sanitize(Linux/WSL, ASan/UBSan): passed.pio run -e muzi_base_uno_superIO_companion_radio_ble: passed against the currentdevbase.git diff --check: passed.A fork carrying these state guards also passed bidirectional LoRa message tests on a Muzi Works SuperBase (nRF52840/SX1262). This rebased branch has not been separately flashed; the deterministic tests exercise the interrupted-TX cases.