-/*
- * A command line pre-processor to detect connect/disconnect messages
- * and update the internal state
- */
-
-uint8_t
-ao_cmd_filter(void)
-{
- if (ao_cur_stdio != ao_btm_stdio)
- return 0;
- ao_cmd_lex();
- while (ao_cmd_lex_c != '\n') {
- if (ao_match_word("CONNECT"))
- return 1;
- if (ao_match_word("DISCONNECT"))
- return 1;
- if (ao_match_word("ERROR"))
- return 1;
- if (ao_match_word("OK"))
- return 1;
- ao_cmd_lex();
- }
- ao_cmd_status = 0;
- return 0;
-}
-