u8state is not initiated in the constructor. Therefor it is possible that the master starts up not being in IDLE state.