From 11c146f6add39ce3d28a3a229a94555784d46849 Mon Sep 17 00:00:00 2001 From: Terrence Date: Fri, 7 Mar 2025 18:07:32 +0800 Subject: [PATCH] fix led highlight when listening --- main/application.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/application.cc b/main/application.cc index 131d54e6..9bccaef1 100644 --- a/main/application.cc +++ b/main/application.cc @@ -520,7 +520,7 @@ void Application::Start() { protocol_->SendWakeWordDetected(wake_word); ESP_LOGI(TAG, "Wake word detected: %s", wake_word.c_str()); keep_listening_ = true; - SetDeviceState(kDeviceStateListening); + SetDeviceState(kDeviceStateIdle); } else if (device_state_ == kDeviceStateSpeaking) { AbortSpeaking(kAbortReasonWakeWordDetected); } else if (device_state_ == kDeviceStateActivating) { @@ -685,7 +685,7 @@ void Application::InputAudio() { } #if CONFIG_USE_WAKE_WORD_DETECT - if (device_state_ != kDeviceStateListening && wake_word_detect_.IsDetectionRunning()) { + if (wake_word_detect_.IsDetectionRunning()) { wake_word_detect_.Feed(data); } #endif