Selaa lähdekoodia

add:只有302启用老版OTA

Dozingfiretruck 4 vuotta sitten
vanhempi
sitoutus
f1b5f8aea8
1 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. 5 3
      luat/modules/luat_main.c

+ 5 - 3
luat/modules/luat_main.c

@@ -165,9 +165,11 @@ int luat_main (void) {
 
   // 1. 初始化文件系统
   luat_fs_init();
-
-  // 是否需要升级或者回滚
-  luat_ota_update_or_rollback();
+  //只有302启用老版OTA
+  if (strcmp(luat_os_bsp(),"ec616")==0){
+    // 是否需要升级或者回滚
+    luat_ota_update_or_rollback();
+  }
 
   int result = luat_main_call();
   LLOGE("Lua VM exit!! reboot in %dms", LUAT_EXIT_REBOOT_DELAY);