增加心率数据nextday清空
authorCaisking <3449750381@qq.com>
Mon, 19 Aug 2024 03:01:39 +0000 (11:01 +0800)
committerCaisking <3449750381@qq.com>
Mon, 19 Aug 2024 03:01:39 +0000 (11:01 +0800)
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp

index b690175..e68f8a4 100644 (file)
@@ -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
 }