+ uint8_t mode = 2;
+ ao_cmd_white();
+ if (ao_cmd_lex_c != '\n') {
+ ao_cmd_decimal();
+ mode = (uint8_t) ao_cmd_lex_u32;
+ }
+ mode++;
+ if (mode & 2) {
+ ao_set_monitor(0);
+ ao_packet_slave_stop();
+ ao_radio_get();
+ RFST = RFST_STX;
+ }
+ if (mode == 3) {
+ printf ("Hit a character to stop..."); flush();
+ getchar();
+ putchar('\n');
+ }
+ if (mode & 1) {
+ ao_radio_idle();
+ ao_radio_put();
+ }