diff --git a/src/nrf_to_nrf.cpp b/src/nrf_to_nrf.cpp index d9ce0b3..1ec18d8 100644 --- a/src/nrf_to_nrf.cpp +++ b/src/nrf_to_nrf.cpp @@ -272,16 +272,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;