From: Caisking <3449750381@qq.com> Date: Wed, 2 Oct 2024 08:32:30 +0000 (+0800) Subject: 心率血氧:关机存储修改为测量完存储 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=0e77a1cd664284af84b5a88633f5416dabafda43;p=mirrors%2FFD230.git 心率血氧:关机存储修改为测量完存储 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/heart_blood/health_service/health_service.cpp b/code/sdk/application/wearable/fd230app/nativeui/heart_blood/health_service/health_service.cpp index 4067f5226..d381f219d 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/heart_blood/health_service/health_service.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/heart_blood/health_service/health_service.cpp @@ -388,6 +388,7 @@ namespace OHOS // 写入文件到当天历史数据 UpdateHourlyHeartRate(data.timestamp, data.Heart); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UpdateHourlyHeartRate is ok"); + SaveDailyHeartRate();//进行心率历史数据文件存储 /* 存储bin文件[协议使用] */ std::string binFilePath = GetBinFilePath(HEALTH_TYPE_HEART);