From e8076fd95c50f0cc5921ebfae443b9f7a2545713 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Fri, 19 Jul 2024 17:01:05 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9=E5=96=9D=E6=B0=B4=E6=8F=90?= =?utf8?q?=E9=86=92=E5=BC=B9=E7=AA=97=E7=9A=84=E8=AE=A1=E7=AE=97=E9=94=99?= =?utf8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e5c61002e..ccd497237 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/alarmclocktimerconfig/src/AlarmClockTimerConfig.cpp @@ -475,7 +475,7 @@ extern "C" drinkremind_expectedTime = current_seconds + interval_time_seconds; if (drinkremind_expectedTime >= hour_24_seconds) { - drinkremind_expectedTime = hour_24_seconds - drinkremind_expectedTime; + drinkremind_expectedTime = drinkremind_expectedTime - hour_24_seconds; } WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "current_seconds = %d,drinkremind_expectedTime = %d", current_seconds, drinkremind_expectedTime); AlarmEventPublish(TOPIC_EVENT_DRINKREMINDER, NULL, 0); -- 2.17.1