mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
hfp_ag: add guard for hfp_ag_run_for_context_service_level_connection_queries
This commit is contained in:
parent
40a8ee13bc
commit
dc6af37960
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user