From: Caisking <3449750381@qq.com> Date: Mon, 18 Nov 2024 10:30:57 +0000 (+0800) Subject: 系统:增加恢复出厂删除离线日志 X-Git-Tag: fd230_release_V1.3.102~60 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1422%2F1;p=mirrors%2FFD230.git 系统:增加恢复出厂删除离线日志 --- 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++)