设置呼吸训练不能弹窗运动识别 3268/1 3268/head 3271/target/1
authorCaisking <Casiking@zhihuishixun.com>
Thu, 12 Mar 2026 09:10:49 +0000 (17:10 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Thu, 12 Mar 2026 09:10:49 +0000 (17:10 +0800)
code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp

index 972335d..379cba8 100644 (file)
@@ -1216,6 +1216,11 @@ void MsgCenterNotifyLowPowerAlarmProc(const Topic topic, Request* req)
  {
      uint8_t* motionType=(uint8_t*)req->data;
      WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyArAlertProc,motionType = %d !",*motionType);
+     /* 呼吸训练中不弹出运动识别,避免节律呼吸被误识别为椭圆机等 */
+     if (uapi_dev_runtime_get_respiratory_training_status() == 1)
+     {
+         return;
+     }
      MotionRecognitionViewEventListener::GetInstance().record_motion_recognition_log();
      if(*motionType > 5 || *motionType <1) //未知运动不弹窗
      {