打开绑定投票宏,解决绑定后进入视频表盘死机问题,待验证 1477/1 1477/head 1478/target/1
authorluozheng <1732036298@qq.com>
Sat, 30 Nov 2024 07:50:29 +0000 (15:50 +0800)
committerluozheng <1732036298@qq.com>
Sat, 30 Nov 2024 07:50:29 +0000 (15:50 +0800)
code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/include/RebootAndShutdownModelC.h
code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/RebootAndShutdownModel.cpp

index 1f60029..f42b0f4 100644 (file)
@@ -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");