As the 'is_tx = 0' can't be moved in the whole handler due to a achievable race concerning the hold off in switching to STATE_RX_AACK_ON as well as a new interrupt, we introduce an intermediate 'was_tx' boolean just for this function. There isn't any Fixes tag applying in this article, https://shermano135prt0.wikisona.com/user