From: luozheng <1732036298@qq.com> Date: Tue, 8 Jul 2025 03:08:23 +0000 (+0800) Subject: nextday进行图表清空;model数组清空 ,待验证 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=0f5b7b344747423deae6ba28f97597249617b9cb;p=mirrors%2FFD230.git nextday进行图表清空;model数组清空 ,待验证 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/bloodpressure/include/BPModel.h b/code/sdk/application/wearable/fd230app/nativeui/bloodpressure/include/BPModel.h index 91b49b452..90db725d2 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bloodpressure/include/BPModel.h +++ b/code/sdk/application/wearable/fd230app/nativeui/bloodpressure/include/BPModel.h @@ -135,6 +135,7 @@ public: bool save_bin_BP(const LAST_CHECK_DATA &data); bool UpdateHealthData(const LAST_CHECK_DATA &data); /* -------------------------------------------------------------------------- */ + bool CleanBPData(void); private: diff --git a/code/sdk/application/wearable/fd230app/nativeui/bloodpressure/src/BPModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/bloodpressure/src/BPModel.cpp index 6335c322b..d359013d1 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bloodpressure/src/BPModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/bloodpressure/src/BPModel.cpp @@ -443,6 +443,13 @@ void BPModel::mapDataArray(uint8_t value) { return true; } + //nextday清空血压数据 + bool BPModel::CleanBPData(void) + { + //进行图表清空;model数组清空 + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CleanBPData success"); + return true; + } //////////////////////////////////time处理//////////////////////////////////// // time到时的处理 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 2896f263d..0ba800309 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 @@ -96,6 +96,10 @@ #include "PhoneServiceC.h" #include "cat1_ws.h" +#if defined(BOARD_W9) +#include "bloodpressure/include/BPModel.h" +#endif + #define DIALDATASET 1 //#include "Systemupgrade.h" namespace OHOS { @@ -777,6 +781,11 @@ void MsgCenterNotifyNextDayProc(const Topic topic, Request *req) printf("******nextday is end******\r\n"); #endif +#if defined(BOARD_W9) + printf("******nextday is begin******\r\n"); + BPModel::GetInstance()->CleanBPData(); + printf("w9 nextday is end******\r\n"); +#endif } void MsgCenterNotifyHfpIncomingProc(const Topic topic, Request* req)