适配新协议 3468/1 3468/head 3470/target/1
authorxue <2144439972@qq.com>
Mon, 15 Jun 2026 10:03:36 +0000 (18:03 +0800)
committerxue <2144439972@qq.com>
Mon, 15 Jun 2026 10:03:36 +0000 (18:03 +0800)
code/sdk/application/wearable/n9/nativeapp/nativeui/bloodpressure/src/BPMainPresenter.cpp

index c6266fc..631a1eb 100644 (file)
@@ -239,6 +239,9 @@ bool BPMainPresenter::PollPpgResult() {
   }
 
   if (progressMode_ == BPProgressMode::Measure) {
+    if (status != PPG_ECG_BP_STATUS_SUCCESS) {
+      return false;
+    }
     if (!IsValidBpReading(sbp, dbp)) {
       WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[BP] measure poll invalid sbp=%d dbp=%d", sbp, dbp);
       return false;
@@ -249,6 +252,9 @@ bool BPMainPresenter::PollPpgResult() {
   }
 
   if (progressMode_ == BPProgressMode::Calibrate) {
+    if (status != PPG_ECG_BP_STATUS_SUCCESS) {
+      return false;
+    }
     if (sbp <= 0 || dbp <= 0) {
       WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[BP] cali poll no result sbp=%d dbp=%d", sbp, dbp);
       return false;