From: luozheng <1732036298@qq.com> Date: Sat, 30 Nov 2024 07:50:29 +0000 (+0800) Subject: 打开绑定投票宏,解决绑定后进入视频表盘死机问题,待验证 X-Git-Tag: fd230_release_V1.3.102~7^2~3 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1477%2Fhead;p=mirrors%2FFD230.git 打开绑定投票宏,解决绑定后进入视频表盘死机问题,待验证 --- 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");