ota重启加快logo显示速度
authorSnickerSun <snickersun@163.com>
Sat, 26 Oct 2024 08:33:34 +0000 (16:33 +0800)
committerSnickerSun <snickersun@163.com>
Sat, 26 Oct 2024 08:33:34 +0000 (16:33 +0800)
code/sdk/drivers/peripheral/utils/custom_utils.c

index e3ea3cc..569d2c7 100644 (file)
@@ -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();
     }