Skip to content

Commit

Permalink
Fix for ack disabled,no CRC
Browse files Browse the repository at this point in the history
- Disable checking of packet counter and duplicate CRC when AA is 0 and CRC checking is disabled
  • Loading branch information
TMRh20 committed Oct 1, 2023
1 parent 0fb0f96 commit 07c6163
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nrf_to_nrf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,11 @@ bool nrf_to_nrf::available(uint8_t* pipe_num)

// If the packet has the same ID number and data, it is most likely a
// duplicate
if (packetCtr == lastPacketCounter && packetData == lastData) {
if(NRF_RADIO->CRCCNF != 0){ //If CRC enabled, check this data
if (packetCtr == lastPacketCounter && packetData == lastData) {
NRF_RADIO->TASKS_START = 1;
return 0;
}
}
#if defined CCM_ENCRYPTION_ENABLED
if (enableEncryption) {
Expand Down

0 comments on commit 07c6163

Please sign in to comment.