From: Caisking <3449750381@qq.com> Date: Mon, 19 Aug 2024 03:01:39 +0000 (+0800) Subject: 增加心率数据nextday清空 X-Git-Tag: release_V1.2.70_20241020_135402~639 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=ad6ddc1c0877265018c9c3591af799e7580f49a1;p=mirrors%2FFD230.git 增加心率数据nextday清空 --- 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 b690175ee..e68f8a4fb 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 @@ -490,11 +490,11 @@ void MsgCenterNotifyNextDayProc(const Topic topic, Request* req) //未设置睡眠监控 nextday进行清除睡眠数据。 SleepModel::GetInstance().DeleteSleepData(); } - //清空当日的健康数据 - // if(!HealthService::GetInstance()->CleanHealthData()) - // { - // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CleanHealthData fail!"); - // } + + // 清空当日的心率曲线数据 + HealthService::GetInstance()->ClearHourlyHeartRates(); + HealthService::GetInstance()->SaveDailyHeartRate(); + #endif }