Skip to content

Commit

Permalink
Merge pull request #11395 from SemjonKerner/nrfmin_fix_isr
Browse files Browse the repository at this point in the history
cpu/nrf5x/nrfmin: fix isr termination
  • Loading branch information
miri64 authored Apr 16, 2019
2 parents 41657fc + f8873c3 commit 5e789c6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cpu/nrf5x_common/radio/nrfmin/nrfmin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5e789c6

Please sign in to comment.