From 2fd542fd3b6519d8df70feb6e67ae3db279d0026 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Wed, 23 Oct 2024 11:59:11 +0800 Subject: [PATCH] =?utf8?q?=E8=A1=80=E6=B0=A7=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?utf8?q?=E8=AF=BB=E5=86=99=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/bloodoxygen/src/BloodOxygenModel.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodOxygenModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodOxygenModel.cpp index 3689e3645..1f3c2d484 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodOxygenModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodOxygenModel.cpp @@ -5,6 +5,7 @@ #include "wearable_log.h" #include "heart_blood/health_service/health_service.h" #include "custom_utils.h" + extern "C" errcode_t uapi_get_timestamp_ms(uint32_t *tm); #include "custom_utils.h" @@ -141,13 +142,13 @@ namespace OHOS // 保存检测数据 void BloodOxygenModel::Blood_Save() { - BloodOxygenData data; - data.SPO2 = currentspo2; - data.timestamp = BloodResultPresenter::GetInstance()->GetCurrentTime(); - SetCheckTime(data.timestamp); - HealthService::GetInstance()->UpdateHealthData(data); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%d %ld", currentspo2, data.timestamp); + uint32_t timestamp = BloodResultPresenter::GetInstance()->GetCurrentTime(); + SetCheckTime(timestamp); + + //HealthService::GetInstance()->UpdateHealthData(data); + HealthService::GetInstance()->send_blood_save(); + } // 显示检测结果// 显示检测结果 -- 2.17.1