diff --git a/src/nrf_to_nrf.cpp b/src/nrf_to_nrf.cpp index 174e8ac..6a602f2 100644 --- a/src/nrf_to_nrf.cpp +++ b/src/nrf_to_nrf.cpp @@ -294,16 +294,17 @@ bool nrf_to_nrf::available(uint8_t* pipe_num) } NRF_RADIO->TXADDRESS = txAddress; startListening(false); - } - // If the packet has the same ID number and data, it is most likely a - // duplicate - if(NRF_RADIO->CRCCNF != 0){ //If CRC enabled, check this data - if (packetCtr == lastPacketCounter && packetData == lastData) { - NRF_RADIO->TASKS_START = 1; - return 0; - } + // If the packet has the same ID number and data, it is most likely a + // duplicate + 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) { ccmData.counter = counter;