From: xue <2144439972@qq.com> Date: Mon, 15 Jun 2026 09:34:00 +0000 (+0800) Subject: 数据存储最多为100条 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=e544f579cf8f70d50cdf1a4e1343ba23420ad19d;p=mirrors%2FFD230.git 数据存储最多为100条 --- diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/bloodpressure/src/BPModel.cpp b/code/sdk/application/wearable/n9/nativeapp/nativeui/bloodpressure/src/BPModel.cpp index 059f8fb93..896944383 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/bloodpressure/src/BPModel.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/bloodpressure/src/BPModel.cpp @@ -20,7 +20,7 @@ static constexpr int32_t BP_CALIBRATION_INVALID_TS = -1; static constexpr uint32_t BP_CALIBRATION_MAGIC_V1 = 0x42504301U; static constexpr uint32_t BP_CALIBRATION_MAGIC_V2 = 0x42504302U; static constexpr uint32_t BP_HISTORY_MAGIC = 0x42504801U; -static constexpr uint32_t BP_HISTORY_MAX_COUNT = 50U; +static constexpr uint32_t BP_HISTORY_MAX_COUNT = 100U; struct BPCalibrationStorageV1 { uint32_t magic; @@ -40,7 +40,7 @@ struct BPCalibrationStorageV2 { struct BPHistoryStorage { uint32_t magic; uint32_t count; - BPRecord records[50]; + BPRecord records[BP_HISTORY_MAX_COUNT]; }; } // namespace diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/ecg/src/ECGModel.cpp b/code/sdk/application/wearable/n9/nativeapp/nativeui/ecg/src/ECGModel.cpp index 1ec356548..684167ad2 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/ecg/src/ECGModel.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/ecg/src/ECGModel.cpp @@ -15,12 +15,12 @@ static constexpr const char *ECG_KV_DISCLAIMER = "ecg.disclaimer"; static constexpr const char *ECG_DATA_DIR = "/user/userdata/health/ecg"; static constexpr const char *ECG_HISTORY_FILE = "/user/userdata/health/ecg/ECGHistory.bin"; static constexpr uint32_t ECG_HISTORY_MAGIC = 0x45434701U; -static constexpr uint32_t ECG_HISTORY_MAX_COUNT = 50U; +static constexpr uint32_t ECG_HISTORY_MAX_COUNT = 100U; struct ECGHistoryStorage { uint32_t magic; uint32_t count; - ECGRecord records[50]; + ECGRecord records[ECG_HISTORY_MAX_COUNT]; }; } // namespace