From b09bb5387c6ec4f6360979b47615727cb2414bf8 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 14 Mar 2025 16:21:50 +0100 Subject: [PATCH] hfp: reset context found_equal_sign --- src/classic/hfp.c | 5 +++-- src/classic/hfp.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/classic/hfp.c b/src/classic/hfp.c index 2f4434ec4..8008a795b 100644 --- a/src/classic/hfp.c +++ b/src/classic/hfp.c @@ -608,8 +608,6 @@ void hfp_reset_context_flags(hfp_connection_t * hfp_connection){ hfp_connection->ok_pending = 0; hfp_connection->send_error = 0; - hfp_connection->found_equal_sign = false; - hfp_connection->change_status_update_for_individual_ag_indicators = 0; hfp_connection->operator_name_changed = 0; @@ -642,6 +640,9 @@ static hfp_connection_t * create_hfp_connection_context(void){ hfp_connection->acl_handle = HCI_CON_HANDLE_INVALID; hfp_connection->sco_handle = HCI_CON_HANDLE_INVALID; + // parser + hfp_connection->found_equal_sign = false; + // HF only hfp_connection->hf_call_status = HFP_CALL_STATUS_NO_HELD_OR_ACTIVE_CALLS; hfp_connection->hf_callsetup_status = HFP_CALLSETUP_STATUS_NO_CALL_SETUP_IN_PROGRESS; diff --git a/src/classic/hfp.h b/src/classic/hfp.h index 598f665f4..26cba8188 100644 --- a/src/classic/hfp.h +++ b/src/classic/hfp.h @@ -613,6 +613,7 @@ typedef struct hfp_connection { uint8_t ok_pending; uint8_t send_error; + // parser bool found_equal_sign; uint8_t ignore_value;