mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +00:00
hfp: reset context send_error
This commit is contained in:
parent
eb02e5d7a4
commit
26594b9fc1
@ -606,7 +606,6 @@ static void hfp_reset_voice_recognition(hfp_connection_t * hfp_connection){
|
|||||||
void hfp_reset_context_flags(hfp_connection_t * hfp_connection){
|
void hfp_reset_context_flags(hfp_connection_t * hfp_connection){
|
||||||
if (!hfp_connection) return;
|
if (!hfp_connection) return;
|
||||||
hfp_connection->ok_pending = 0;
|
hfp_connection->ok_pending = 0;
|
||||||
hfp_connection->send_error = 0;
|
|
||||||
hfp_connection->command = HFP_CMD_NONE;
|
hfp_connection->command = HFP_CMD_NONE;
|
||||||
|
|
||||||
hfp_connection->change_status_update_for_individual_ag_indicators = 0;
|
hfp_connection->change_status_update_for_individual_ag_indicators = 0;
|
||||||
@ -646,6 +645,9 @@ static hfp_connection_t * create_hfp_connection_context(void){
|
|||||||
hfp_connection->hf_callsetup_status = HFP_CALLSETUP_STATUS_NO_CALL_SETUP_IN_PROGRESS;
|
hfp_connection->hf_callsetup_status = HFP_CALLSETUP_STATUS_NO_CALL_SETUP_IN_PROGRESS;
|
||||||
hfp_connection->hf_callheld_status = HFP_CALLHELD_STATUS_NO_CALLS_HELD;
|
hfp_connection->hf_callheld_status = HFP_CALLHELD_STATUS_NO_CALLS_HELD;
|
||||||
|
|
||||||
|
// AG only
|
||||||
|
hfp_connection->send_error = 0;
|
||||||
|
|
||||||
hfp_connection->operator_name_changed = 0;
|
hfp_connection->operator_name_changed = 0;
|
||||||
|
|
||||||
hfp_reset_context_flags(hfp_connection);
|
hfp_reset_context_flags(hfp_connection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user