mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/nrf52/radio: change internal state to idle after rx
This commit is contained in:
parent
fed1c4dbbe
commit
eb1cbeae1f
@ -497,6 +497,7 @@ void isr_radio(void)
|
||||
* don't event think of sending an ACK frame :) */
|
||||
if (cfg.promisc) {
|
||||
DEBUG("[nrf802154] Promiscuous mode is enabled.\n");
|
||||
_state = STATE_IDLE;
|
||||
dev->cb(dev, IEEE802154_RADIO_INDICATION_RX_DONE);
|
||||
}
|
||||
/* If the L2 filter passes, device if the frame is indicated
|
||||
@ -511,6 +512,7 @@ void isr_radio(void)
|
||||
}
|
||||
else {
|
||||
DEBUG("[nrf802154] RX frame doesn't require ACK frame.\n");
|
||||
_state = STATE_IDLE;
|
||||
dev->cb(dev, IEEE802154_RADIO_INDICATION_RX_DONE);
|
||||
}
|
||||
}
|
||||
@ -518,6 +520,7 @@ void isr_radio(void)
|
||||
* indicate the frame reception */
|
||||
else if (is_ack && !cfg.ack_filter) {
|
||||
DEBUG("[nrf802154] Received ACK.\n");
|
||||
_state = STATE_IDLE;
|
||||
dev->cb(dev, IEEE802154_RADIO_INDICATION_RX_DONE);
|
||||
}
|
||||
/* If all failed, simply drop the frame and continue listening
|
||||
|
Loading…
Reference in New Issue
Block a user