From cf17c1b1c69d9c8bf85edb0f0f3d99f9874c6376 Mon Sep 17 00:00:00 2001 From: Caisking Date: Sat, 28 Feb 2026 15:25:56 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E8=BF=90=E5=8A=A8=E5=87=86?= =?utf8?q?=E5=A4=87=E7=95=8C=E9=9D=A2=E7=9A=84=E5=BF=83=E7=8E=87=E6=A3=80?= =?utf8?q?=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd272/nativeapp/nativeui/traing/src/TraingModel.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp index 42111224b..cfc1ee5d7 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp @@ -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); } } -- 2.17.1