Given that the 'is_tx = 0' can not be moved in the whole handler thanks to a doable race concerning the delay 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 is not any Fixes tag implementing listed https://astra-premium28260.livebloggs.com/34853393/the-basic-principles-of-lifetime-hosting