hfp_ag: add guard for hfp_ag_run_for_context_service_level_connection_queries

This commit is contained in:
Matthias Ringwald 2023-08-09 15:21:59 +02:00
parent 40a8ee13bc
commit dc6af37960

View File

@ -1072,6 +1072,10 @@ static int hfp_ag_voice_recognition_state_machine(hfp_connection_t * hfp_connect
}
static int hfp_ag_run_for_context_service_level_connection_queries(hfp_connection_t * hfp_connection){
if (hfp_connection->state < HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED) {
return 0;
}
int sent = codecs_exchange_state_machine(hfp_connection);
if (sent) return 1;