Skip to content

Commit e39b2be

Browse files
d00616henrikekblad
authored andcommitted
NRF5 ESB fix two states (#996)
1 parent aabddc8 commit e39b2be

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/NRF5/Radio_ESB.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* The MySensors Arduino library handles the wireless radio link and protocol
33
* between your home built sensors/actuators and HA controller of choice.
4-
* The sensors forms a self healing radio network with optional repeaters. Each
4+
* The sensors formrs a self healing radio network with optional repeaters. Each
55
* repeater and gateway builds a routing tables in EEPROM which keeps track of
66
* the
77
* network topology allowing messages to be routed to nodes.
@@ -636,10 +636,6 @@ extern "C" {
636636
(NRF_RADIO->STATE == RADIO_STATE_STATE_RxIdle) or
637637
(NRF_RADIO->STATE == RADIO_STATE_STATE_RxDisable) or
638638
(NRF_RADIO->STATE == RADIO_STATE_STATE_TxRu)) {
639-
#ifdef NRF52
640-
// RX end, stop timer (PAN102)
641-
_stopTimer();
642-
#endif
643639
if (NRF_RADIO->CRCSTATUS) {
644640
// Ensure no ACK package is recieved
645641
if (NRF_RADIO->RXMATCH != NRF5_ESB_TX_ADDR) {
@@ -664,8 +660,11 @@ extern "C" {
664660
rx_buffer.noack = 0;
665661
#endif
666662
} else {
663+
// Buffer is full
667664
// Stop ACK
668665
_stopACK();
666+
// Increment pkgid allowing receive the package again
667+
package_ids[NRF_RADIO->RXMATCH]++;
669668
}
670669
}
671670
} else {

0 commit comments

Comments
 (0)