Browse Source

update:优化型号判断

Dozingfiretruck 3 years ago
parent
commit
f6447c2392
1 changed files with 1 additions and 1 deletions
  1. 1 1
      xmake.lua

+ 1 - 1
xmake.lua

@@ -232,7 +232,7 @@ target("air10x")
         if LVGL_CONF then target:add("deps", "lvgl") end
         target:add("deps", "miniz")
         local custom_data = io.readfile("$(projectdir)/app/port/luat_conf_bsp.h")
-        local TARGET_CONF = custom_data:find("#define AIR101")
+        local TARGET_CONF = custom_data:find("\r#define AIR101") or custom_data:find("\n#define AIR101")
         if TARGET_CONF == nil then TARGET_NAME = "AIR103" else TARGET_NAME = "AIR101" end
         local FDB_CONF = conf_data:find("\r#define LUAT_USE_FDB") or conf_data:find("\n#define LUAT_USE_FDB")