From b331a755e631f484f118c83039011e2ff5dfd654 Mon Sep 17 00:00:00 2001 From: wangzhaohao Date: Wed, 23 Jul 2025 12:42:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BC=80=E5=85=B3=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangzhaohao --- .../core/src/contentsensormanager/switch_status_collector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/src/contentsensormanager/switch_status_collector.cpp b/services/core/src/contentsensormanager/switch_status_collector.cpp index 66da117c..6222b2aa 100644 --- a/services/core/src/contentsensormanager/switch_status_collector.cpp +++ b/services/core/src/contentsensormanager/switch_status_collector.cpp @@ -37,7 +37,7 @@ bool SwitchStatusCollector::ConvertToProfile(std::vector& HILOGI("call!"); #ifdef DEVICE_PROFILE_SWITCH_DISABLE HILOGW("this device does not support switch data"); - return DP_DEVICE_UNSUPPORTED_SWITCH; + return false; #endif // DEVICE_PROFILE_SWITCH_DISABLE std::string fileContent = ""; int32_t loadJsonResult = LoadJsonFile(SWITCH_CAPABILITY_PATH, fileContent); -- Gitee