As being the 'is_tx = 0' can't be moved in the complete handler because of a possible race 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 intent. There's no Fixes tag applying right here, many changes are https://ricardobdfgh.tkzblog.com/28503959/lifetime-hosting-service-can-be-fun-for-anyone