Because the 'is_tx = 0' cannot be moved in the whole handler due to a feasible race between the hold off in switching to STATE_RX_AACK_ON in addition to a new interrupt, we introduce an intermediate 'was_tx' boolean just for this purpose. There isn't a Fixes tag making use of right https://douglasx246qst0.wikirecognition.com/user