Solved CBC-MAC problems and unwanted device reset.
HAX: changed phase_wait to force a sent packet.