As the 'is_tx = 0' can not be moved in the entire handler as a consequence of a doable race involving the delay in switching to STATE_RX_AACK_ON plus a new interrupt, we introduce an intermediate 'was_tx' boolean just for this reason. There's no Fixes tag implementing in this article, quite https://paxtonjlmno.atualblog.com/34648631/lifetime-hosting-can-be-fun-for-anyone