From 5cf83299cbd3843e840a88a73f2d5237a2c34e15 Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Sat, 26 Oct 2024 16:33:34 +0800 Subject: [PATCH] =?utf8?q?ota=E9=87=8D=E5=90=AF=E5=8A=A0=E5=BF=ABlogo?= =?utf8?q?=E6=98=BE=E7=A4=BA=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/drivers/peripheral/utils/custom_utils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/sdk/drivers/peripheral/utils/custom_utils.c b/code/sdk/drivers/peripheral/utils/custom_utils.c index e3ea3cc8d..569d2c730 100644 --- a/code/sdk/drivers/peripheral/utils/custom_utils.c +++ b/code/sdk/drivers/peripheral/utils/custom_utils.c @@ -490,6 +490,12 @@ errcode_t uaip_cmd_update_request(void) uapi_calendar_store_date(); update_version_report_log();//版本升级记录 + + //重启前要保存时间 + uapi_calendar_store_date(); + osDelay(50); + reset_deal_with_fs(); + osDelay(50); /* IOT设备重启 */ upg_reboot(); } -- 2.17.1