From 603722a80ccf3471b034cc9c59df5e479d00b6ef Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 14 Mar 2025 16:22:48 +0100 Subject: [PATCH] hfp: reset context clip have alpha --- src/classic/hfp.c | 1 - src/classic/hfp.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/classic/hfp.c b/src/classic/hfp.c index 8008a795b..ce68b8a59 100644 --- a/src/classic/hfp.c +++ b/src/classic/hfp.c @@ -623,7 +623,6 @@ void hfp_reset_context_flags(hfp_connection_t * hfp_connection){ hfp_connection->call_waiting_notification_enabled = 0; hfp_connection->command = HFP_CMD_NONE; hfp_connection->enable_status_update_for_ag_indicators = 0xFF; - hfp_connection->clip_have_alpha = false; hfp_reset_voice_recognition(hfp_connection); } diff --git a/src/classic/hfp.h b/src/classic/hfp.h index 26cba8188..94d08152a 100644 --- a/src/classic/hfp.h +++ b/src/classic/hfp.h @@ -614,7 +614,8 @@ typedef struct hfp_connection { uint8_t send_error; // parser - bool found_equal_sign; + bool found_equal_sign; + bool clip_have_alpha; uint8_t ignore_value; uint8_t change_status_update_for_individual_ag_indicators; @@ -756,7 +757,6 @@ typedef struct hfp_connection { // also used for CLCC, CCWA, CLIP if set uint8_t bnip_type; // 0 == not set char bnip_number[HFP_BNEP_NUM_MAX_SIZE]; // - bool clip_have_alpha; #ifdef ENABLE_CC256X_ASSISTED_HFP bool cc256x_send_write_codec_config;