Since the 'is_tx = 0' can't be moved in the entire handler thanks to a attainable race amongst the delay in switching to STATE_RX_AACK_ON in addition to a new interrupt, we introduce an intermediate 'was_tx' boolean just for this objective. There is no Fixes tag making use of listed here, https://sethwacef.bloggadores.com/28218359/the-definitive-guide-to-lifetime-hosting