优化运动准备界面的心率检测
authorCaisking <Casiking@zhihuishixun.com>
Sat, 28 Feb 2026 07:25:56 +0000 (15:25 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Sat, 28 Feb 2026 07:25:56 +0000 (15:25 +0800)
code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp

index 4211122..cfc1ee5 100644 (file)
@@ -3182,6 +3182,8 @@ bool TraingModel::LoadGPSData(const std::string &filePath) {
      ppg_hr_start();
  #endif
      gpsopen = true;
+     //提前设置训练状态为1
+     uapi_dev_runtime_set_train_status(1);
    }
  }
  //运动心率、gps关闭
@@ -3205,8 +3207,10 @@ bool TraingModel::LoadGPSData(const std::string &filePath) {
  #endif
  
      gpsopen = false;
-     WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,
-                   "GPS定位服务关闭完成,gpsopen设置为false");
+     WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GPS定位服务关闭完成,gpsopen设置为false");
+
+     //提前设置训练状态为0
+     uapi_dev_runtime_set_train_status(0);
    }
  }