Skip to content

Answer the four-byte status reads RadioLib sends - #9

Merged
A13xB0 merged 1 commit into
mainfrom
fix-four-byte-status-reads
Oct 30, 2026
Merged

A13xB0 merged 1 commit into
mainfrom
fix-four-byte-status-reads

Conversation

@A13xB0

@A13xB0 A13xB0 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

GetIrqStatus, GetRxBufferStatus and GetDeviceErrors are four bytes (datasheet tables 13-30, 13-78, 13-84) and RadioLib clocks four, but the model answered the last byte only to a fifth. So on the buffer SPI path (the native MeshCore host) a driver reading the flags never saw RxDone, CrcErr, HeaderValid or PreambleDetected: a frame that failed its CRC read as good and was repeated, and MeshCore's isReceiving() always read the channel as idle. The byte-at-a-time path pads the read and was not affected.

This changes native runs: CRC failures are now dropped and listen-before-talk sees preamble and header flags.

@A13xB0
A13xB0 merged commit 022a150 into main Oct 30, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant