Skip to content

Commit

Permalink
Merge pull request #2695 from ExpressLRS/Fix-GetLastPacketStats().-again
Browse files Browse the repository at this point in the history
Fix GetLastPacketStats()... again
  • Loading branch information
wvarty committed May 6, 2024
2 parents 256a7f7 + 10b9dd8 commit 5904983
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib/LR1121Driver/LR1121.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,6 @@ void ICACHE_RAM_ATTR LR1121Driver::GetLastPacketStats()
hal.WriteCommand(LR11XX_REGMEM_READ_BUFFER8_OC, inbuf, sizeof(inbuf), radio[secondRadioIdx]);
hal.ReadCommand(RXdataBuffer_second, sizeof(RXdataBuffer_second), radio[secondRadioIdx]);

// leaving only the type in the first byte (crcHigh was cleared)
RXdataBuffer[0] &= 0b11;
RXdataBuffer_second[1] &= 0b11; // 1st index because the first byte returned is a status bytes, and not packet data.

// if the second packet is same to the first, it's valid
if(memcmp(RXdataBuffer, RXdataBuffer_second + 1, PayloadLength) == 0)
{
Expand Down

0 comments on commit 5904983

Please sign in to comment.