From 82d4df6d97f67485b3b46420d36d116ac58b0afa Mon Sep 17 00:00:00 2001 From: Caisking Date: Thu, 11 Sep 2025 14:58:54 +0800 Subject: [PATCH] =?utf8?q?=E5=85=B3=E9=97=AD=E8=AF=AD=E9=9F=B3=E5=8A=A9?= =?utf8?q?=E6=89=8B=E7=9A=84=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeapp/nativeui/assistant/src/AssistantModel.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/assistant/src/AssistantModel.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/assistant/src/AssistantModel.cpp index 3b5135c97..8cb99088d 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/assistant/src/AssistantModel.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/assistant/src/AssistantModel.cpp @@ -19,10 +19,9 @@ #include "lwip/err.h" #endif -#ifdef SUPPORT_PHONE_SERVICE #include "phoneservice/include/PhoneService.h" #include "phoneservice/include/PhoneServiceC.h" -#endif + #include "vibrator_service.h" @@ -153,32 +152,27 @@ void AssistantModel::Init() { //获取状态[hfp] bool AssistantModel::GetHFPStatus(void) { -#ifdef SUPPORT_PHONE_SERVICE if (uapi_hfp_connect_state()) { WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "uapi_hfp_connect_state is ok"); return true; } -#endif WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "uapi_hfp_connect_state is failed"); return false; } //开启语音助手[soc] bool AssistantModel::StartAssistant(void) { -#ifdef SUPPORT_PHONE_SERVICE if (uapi_open_voice_recognition() == 0) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uapi_open_voice_recognition is ok"); //成功开启语音助手 uapi_dev_runtime_set_voice_status(1); return true; } -#endif WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uapi_open_voice_recognition is failed"); return false; } //关闭语音助手 void AssistantModel::StopAssistant(void) { -#ifdef SUPPORT_PHONE_SERVICE if (uapi_close_voice_recognition() == 0) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uapi_close_voice_recognition is ok"); @@ -186,7 +180,6 @@ void AssistantModel::StopAssistant(void) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uapi_close_voice_recognition is failed"); } -#endif } //语音回答界面->主界面 -- 2.17.1