1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

Merge pull request #11395 from SemjonKerner/nrfmin_fix_isr

cpu/nrf5x/nrfmin: fix isr termination
This commit is contained in:
Martine Lenders 2019-04-16 11:27:54 +02:00 committed by GitHub
commit 5e789c6595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -302,10 +302,11 @@ void isr_radio(void)
if ((NRF_RADIO->CRCSTATUS != 1) || !(nrfmin_dev.event_callback)) {
rx_buf.pkt.hdr.len = 0;
NRF_RADIO->TASKS_START = 1;
return;
}
rx_lock = 0;
nrfmin_dev.event_callback(&nrfmin_dev, NETDEV_EVENT_ISR);
else {
rx_lock = 0;
nrfmin_dev.event_callback(&nrfmin_dev, NETDEV_EVENT_ISR);
}
}
else if (state == STATE_TX) {
goto_target_state();