소스 검색

add:只有302启用老版OTA

Dozingfiretruck 4 년 전
부모
커밋
f1b5f8aea8
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  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);