mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/ieee802154_submac: prevent calling ACK TO fired if cancelled
This commit is contained in:
parent
cb6e242b65
commit
a7a0b8f592
@ -139,6 +139,10 @@ void ieee802154_submac_ack_timer_cancel(ieee802154_submac_t *submac)
|
||||
{
|
||||
(void)submac;
|
||||
ztimer_remove(ZTIMER_USEC, &ack_timer);
|
||||
/* Avoid race conditions between RX_DONE and ACK_TIMEOUT */
|
||||
if (ev_ack_timeout.list_node.next) {
|
||||
event_cancel(EVENT_PRIO_HIGHEST, &ev_ack_timeout);
|
||||
}
|
||||
}
|
||||
|
||||
static void _ack_timeout(void *arg)
|
||||
|
Loading…
Reference in New Issue
Block a user