From 66885996e4eff9cdd0c4906a60606c9d532fb430 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 14 Mar 2025 17:38:05 +0100 Subject: [PATCH] hfp: init vra_state in create connection --- src/classic/hfp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classic/hfp.c b/src/classic/hfp.c index 9388e4cc0..d9d110caf 100644 --- a/src/classic/hfp.c +++ b/src/classic/hfp.c @@ -594,6 +594,7 @@ static void hfp_vra_handle_disconnect(hfp_connection_t * hfp_connection) { } static void hfp_reset_voice_recognition(hfp_connection_t * hfp_connection){ + hfp_connection->vra_state = HFP_VRA_VOICE_RECOGNITION_OFF; hfp_connection->vra_state_requested = HFP_VRA_VOICE_RECOGNITION_OFF; hfp_connection->activate_voice_recognition = false; hfp_connection->deactivate_voice_recognition = false;