Skip to content

Commit

Permalink
fixup! fixup! at86rf2xx: fix receive before send detection
Browse files Browse the repository at this point in the history
  • Loading branch information
bergzand committed Feb 7, 2020
1 parent d548f5f commit c4ca33c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/at86rf2xx/at86rf2xx_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ static void _isr(netdev_t *netdev)
}
netdev->event_callback(netdev, NETDEV_EVENT_RX_COMPLETE);
}
else if ((state == AT86RF2XX_STATE_TX_ARET_ON)) {
else if (state == AT86RF2XX_STATE_TX_ARET_ON) {
/* check for more pending TX calls and return to idle state if
* there are none */
assert(dev->pending_tx != 0);
Expand All @@ -730,7 +730,7 @@ static void _isr(netdev_t *netdev)
* dev->pending == 2 means two transmits occurred and this is the isr for
* the first.
*/
else if ((state == AT86RF2XX_STATE_BUSY_TX_ARET)) {
else if (state == AT86RF2XX_STATE_BUSY_TX_ARET) {
if (dev->pending_tx > 1) {
dev->pending_tx--;
_isr_send_complete(dev, trac_status);
Expand Down

0 comments on commit c4ca33c

Please sign in to comment.