As the 'is_tx = 0' can not be moved in the complete handler as a result of a achievable race in between the hold off in switching to STATE_RX_AACK_ON plus a new interrupt, we introduce an intermediate 'was_tx' boolean just for this purpose. There is absolutely no Fixes tag making https://arthurrtvvw.anchor-blog.com/8931641/the-fact-about-lifetime-hosting-that-no-one-is-suggesting