From b7702353049a1e8821bb3737381f5a2d56a0571b Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Mon, 18 Nov 2024 18:30:57 +0800 Subject: [PATCH] =?utf8?q?=E7=B3=BB=E7=BB=9F=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?utf8?q?=E6=81=A2=E5=A4=8D=E5=87=BA=E5=8E=82=E5=88=A0=E9=99=A4=E7=A6=BB?= =?utf8?q?=E7=BA=BF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/traing/src/TraingModel.cpp | 2 +- code/sdk/drivers/peripheral/utils/custom_utils.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp index 9bc3b28df..042ad84ca 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp @@ -1647,7 +1647,7 @@ void TraingModel::SendLiveDataIfNecessary() { // 检查自动获取的配置 app发起 if (user_autoget && Openingway) { // 发送实时数据 - if (g_motionTimes % 1 == 0) { + if (g_motionTimes % user_freq == 0) { WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SendLiveData is OK\r\n"); SendLiveData(); // 发送实时数据 } diff --git a/code/sdk/drivers/peripheral/utils/custom_utils.c b/code/sdk/drivers/peripheral/utils/custom_utils.c index 2f64b0a90..b931a387b 100644 --- a/code/sdk/drivers/peripheral/utils/custom_utils.c +++ b/code/sdk/drivers/peripheral/utils/custom_utils.c @@ -2214,6 +2214,7 @@ int uapi_save_exc(void) return uapi_tar_file("/user/exc",EXC_TAR_PATH,str); } +//恢复出厂接口 void uapi_restore_factory_setting(void) { //恢复存储 @@ -2229,6 +2230,7 @@ void uapi_restore_factory_setting(void) "/user/dial/custom_dial/", //自定义表盘 "/user/dial/offline_dial/",//离线表盘 EXC_TAR_PATH, //死机文件 + "/user/log/",//离线日志 }; #else @@ -2236,6 +2238,7 @@ void uapi_restore_factory_setting(void) "/user/userdata", "/system/kvstore", EXC_TAR_PATH,//死机文件 + "/user/log/",//离线日志 }; #endif for(int i = 0; i < (sizeof(filebuf)/sizeof(filebuf[0])); i++) -- 2.17.1