Skip to content

Replace second packet memcmp with crc - #3017

Merged
JyeSmith merged 10 commits into
masterfrom
replace-second-packet-memcmp-with-crc
Dec 26, 2024
Merged

JyeSmith merged 10 commits into
masterfrom
replace-second-packet-memcmp-with-crc

Conversation

@JyeSmith

@JyeSmith JyeSmith commented Nov 5, 2024

Copy link
Copy Markdown
Member

The main change here is to remove memcmp() which is used to compare the second radios received data to the first. If they are the same it is then assumed the data is correct.

However this limits both radios to only sending the exact same payload.

GetLastPacketStats() has now been split and CheckForSecondPacket() is first called to retrieve the payload. Then the CRC can be checked before retrieving the packet stats.

Side quest... removed variable isFirstRxIrq. Lessons learnt from previous PRs, we can run into issues when relying on variables being cleared in main. The LR1121 driver has been running successfully without it for sometime now.

@JyeSmith
JyeSmith merged commit 806a03c into master Dec 26, 2024
@JyeSmith
JyeSmith deleted the replace-second-packet-memcmp-with-crc branch December 26, 2024 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants