From 397708ae4af982fa858e1a714b31e0ca1629af27 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Sat, 30 Nov 2024 15:50:29 +0800 Subject: [PATCH] =?utf8?q?=E6=89=93=E5=BC=80=E7=BB=91=E5=AE=9A=E6=8A=95?= =?utf8?q?=E7=A5=A8=E5=AE=8F=EF=BC=8C=E8=A7=A3=E5=86=B3=E7=BB=91=E5=AE=9A?= =?utf8?q?=E5=90=8E=E8=BF=9B=E5=85=A5=E8=A7=86=E9=A2=91=E8=A1=A8=E7=9B=98?= =?utf8?q?=E6=AD=BB=E6=9C=BA=E9=97=AE=E9=A2=98=EF=BC=8C=E5=BE=85=E9=AA=8C?= =?utf8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../include/RebootAndShutdownModelC.h | 2 +- .../rebootandshutdown/src/RebootAndShutdownModel.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/include/RebootAndShutdownModelC.h b/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/include/RebootAndShutdownModelC.h index 9b3f7e055..53d8e4888 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/include/RebootAndShutdownModelC.h +++ b/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/include/RebootAndShutdownModelC.h @@ -8,7 +8,7 @@ extern "C" #endif #endif -#define IS_SUPPORT_BIND_VOTE 0 +#define IS_SUPPORT_BIND_VOTE 1 void uapi_add_bind_vote(void); void uapi_remove_bind_vote(void); diff --git a/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/RebootAndShutdownModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/RebootAndShutdownModel.cpp index 1f600291b..f42b0f4c0 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/RebootAndShutdownModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/RebootAndShutdownModel.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-07-18 14:55:27 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-11-30 11:22:54 + * @LastEditTime: 2024-11-30 15:21:59 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/RebootAndShutdownModel.cpp */ @@ -35,9 +35,9 @@ extern "C" { void uapi_add_bind_vote(void) { - uint8_t res = pm_veto_get_id_cnt(PM_ID_HEART); + uint8_t res = pm_veto_get_id_cnt(PM_ID_JPEG); if (res == 0) { - uapi_pm_add_sleep_veto(PM_ID_HEART); + uapi_pm_add_sleep_veto(PM_ID_JPEG); } else { WEARABLE_LOGE(WEARABLE_LOG_MODULE_MAIN_SERVICE, "uapi_add_bind_vote error"); @@ -47,9 +47,9 @@ void uapi_add_bind_vote(void) } void uapi_remove_bind_vote(void) { - uint8_t res = pm_veto_get_id_cnt(PM_ID_HEART); + uint8_t res = pm_veto_get_id_cnt(PM_ID_JPEG); if (res == 1) { - uapi_pm_remove_sleep_veto(PM_ID_HEART); + uapi_pm_remove_sleep_veto(PM_ID_JPEG); } else { WEARABLE_LOGE(WEARABLE_LOG_MODULE_MAIN_SERVICE, "uapi_remove_bind_vote error"); -- 2.17.1