Browse Source

fix: 缺了luat_ota_reboot函数

Wendal Chen 1 year ago
parent
commit
180d3abf5b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      luat/modules/luat_ota.c

+ 2 - 1
luat/modules/luat_ota.c

@@ -5,7 +5,6 @@
 #include "luat_timer.h"
 #include "luat_mem.h"
 #include "luat_flash.h"
-#ifdef LUAT_USE_OTA
 #define LUAT_LOG_TAG "ota"
 #include "luat_log.h"
 
@@ -15,6 +14,8 @@ LUAT_WEAK void luat_ota_reboot(int timeout_ms) {
   luat_os_reboot(1);
 }
 
+#ifdef LUAT_USE_OTA
+
 #include "luat_crypto.h"
 #include "luat_md5.h"