From 3a0dd3e2d2b9ac121ec033d408068342ee604b73 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Tue, 14 Jan 2025 17:05:38 +0800 Subject: [PATCH] =?utf8?q?=E5=BF=83=E7=8E=87=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?utf8?q?=E4=BA=86=E5=BF=83=E7=8E=87=E8=A1=80=E6=B0=A7=E7=BB=93=E6=9E=84?= =?utf8?q?=E4=BD=93=E7=9A=84=E6=95=B0=E6=8D=AE=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/heart_blood/health_service/health_service.cpp | 2 +- .../nativeui/heart_blood/health_service/health_service.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 bf84199c2..1e924908a 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 @@ -651,7 +651,7 @@ std::string HealthService::get_heart_data() { // 将数据格式化为字符串,拼接到结果中 result << formatTime(data.timestamp) << "," << std::to_string(data.Heart) << "\n"; - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "get_heart_data %d %d", + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "get_heart_data %d %d", data.timestamp, data.Heart); } diff --git a/code/sdk/application/wearable/fd230app/nativeui/heart_blood/health_service/health_service.h b/code/sdk/application/wearable/fd230app/nativeui/heart_blood/health_service/health_service.h index 6c4fe38b0..9028f3933 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/heart_blood/health_service/health_service.h +++ b/code/sdk/application/wearable/fd230app/nativeui/heart_blood/health_service/health_service.h @@ -31,13 +31,13 @@ namespace OHOS #pragma pack(push, 1) // 设置对齐为1字节 typedef struct { - uint8_t SPO2; // 血氧值 uint32_t timestamp; // 最近一次检测时间 + uint8_t SPO2; // 血氧值 } BloodOxygenData; typedef struct { - uint8_t Heart; // 心率值 uint32_t timestamp; // 最近一次检测时间 + uint8_t Heart; // 心率值 } HeartRateData; #pragma pack(pop) // 恢复默认对齐 // 检查类 -- 2.17.1