From 77ea60b874aeedc8dd6c23602a2ab05b7c814233 Mon Sep 17 00:00:00 2001 From: penglei <1624952103@qq.com> Date: Fri, 9 Aug 2024 19:40:21 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E7=9D=A1=E7=9C=A0=E7=BB=93?= =?utf8?q?=E6=9D=9F=E5=88=A4=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp | 6 +++--- .../wearable/service/msg_center/src/msg_center_customer.cpp | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp b/code/sdk/application/wearable/fd230app/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp index e01a5c5c8..a939a1feb 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp @@ -375,11 +375,11 @@ extern "C" } } // 退出睡眠模式 - if (WAKE_TIME_RANGE && (uapi_dev_runtime_get_nap_status() == 0)) + if (WAKE_TIME_RANGE && (uapi_dev_runtime_get_nap_status() == 0) && (uapi_dev_runtime_get_sleep_status() == 0)) { - uapi_dev_runtime_set_sleep_status(0); + //uapi_dev_runtime_set_sleep_status(0); uapi_dev_runtime_set_nap_status(1); - do_cywee_service_check_msg(CYWEE_SERVICE_CMD_GET_SLEEP_DATA, NULL); + // do_cywee_service_check_msg(CYWEE_SERVICE_CMD_GET_SLEEP_DATA, NULL); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "起床啦!"); // 设置状态为小睡 OHOS::SleepModel::GetInstance().set_sleep_state(OHOS::SLEEPSTATE::WAKE); diff --git a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp index c57b2be5d..1967f25d3 100644 --- a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp @@ -1258,6 +1258,7 @@ void MsgCenterNotifyInactivityAccumulateTimeProc(const Topic topic, Request* req #endif free(cywee_Inactivity_Accumulate_Time_Info); cywee_Inactivity_Accumulate_Time_Info = NULL; + uapi_dev_runtime_set_sleep_status(0); } //APP运动相关 -- 2.17.1