From 0c873afde1cab5165d906daf40577b8d2efecc5c Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Fri, 28 Feb 2025 12:23:05 +0100 Subject: [PATCH] hfp_hf: reset postponed HF VR activation event on AG's VR deactivation message --- src/classic/hfp_hf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/classic/hfp_hf.c b/src/classic/hfp_hf.c index 17d9b1b95..3ca1f4acc 100644 --- a/src/classic/hfp_hf.c +++ b/src/classic/hfp_hf.c @@ -611,7 +611,8 @@ static bool hfp_hf_voice_recognition_state_machine(hfp_connection_t * hfp_connec case HFP_VRA_W4_VOICE_RECOGNITION_OFF: hfp_connection->vra_state = HFP_VRA_VOICE_RECOGNITION_OFF; hfp_connection->vra_state_requested = hfp_connection->vra_state; - hfp_connection->activate_voice_recognition = false; + hfp_connection->emit_vra_enabled_after_audio_established = false; + hfp_connection->deactivate_voice_recognition = false; if (hfp_connection->activate_voice_recognition){ hfp_connection->enhanced_voice_recognition_enabled = hfp_hf_enhanced_vra_flag_supported(hfp_connection); hfp_hf_activate_voice_recognition(hfp_connection->acl_handle);