mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-10 15:44:32 +00:00
hfp_hf: handle ag indicator status independent from status changed flag
This commit is contained in:
parent
5589c51d36
commit
578700050e
@ -1355,7 +1355,6 @@ static void hfp_hf_handle_transfer_ag_indicator_status(hfp_connection_t * hfp_co
|
||||
uint16_t i;
|
||||
|
||||
for (i = 0; i < hfp_connection->ag_indicators_nr; i++){
|
||||
if (hfp_connection->ag_indicators[i].status_changed) {
|
||||
if (strcmp(hfp_connection->ag_indicators[i].name, "callsetup") == 0){
|
||||
hfp_callsetup_status_t new_hf_callsetup_status = (hfp_callsetup_status_t) hfp_connection->ag_indicators[i].status;
|
||||
bool ringing_old = hfp_is_ringing(hfp_connection->hf_callsetup_status);
|
||||
@ -1385,7 +1384,6 @@ static void hfp_hf_handle_transfer_ag_indicator_status(hfp_connection_t * hfp_co
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void hfp_hf_handle_rfcomm_command(hfp_connection_t * hfp_connection){
|
||||
int value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user