Browse Source

del:删除air302 ota代码

Dozingfiretruck 3 years ago
parent
commit
6920d9baad
1 changed files with 0 additions and 7 deletions
  1. 0 7
      luat/modules/luat_main.c

+ 0 - 7
luat/modules/luat_main.c

@@ -198,17 +198,10 @@ int luat_main (void) {
 
   // 1. 初始化文件系统
   luat_fs_init();
-  //只有302启用老版OTA
-#ifdef AIR302
-    // 是否需要升级或者回滚
-    luat_ota_update_or_rollback();
-#else
 #ifdef LUAT_USE_OTA
   if (luat_ota_exec() == 0) {
     luat_os_reboot(5);
   }
-#endif
-
 #endif
 
   luat_main_call();