mode++;
if ((mode & 2) && !radio_on) {
#if HAS_MONITOR
- ao_set_monitor(0);
+ ao_monitor_disable();
#endif
#if PACKET_HAS_SLAVE
ao_packet_slave_stop();
ao_radio_idle();
ao_radio_put();
radio_on = 0;
+#if HAS_MONITOR
+ ao_monitor_enable();
+#endif
}
}