Explorar el Código

change: libfota2一律使用移芯模式的版本号规则

Wendal Chen hace 1 año
padre
commit
d8a826a31a
Se han modificado 1 ficheros con 2 adiciones y 6 borrados
  1. 2 6
      script/libs/libfota2.lua

+ 2 - 6
script/libs/libfota2.lua

@@ -173,12 +173,8 @@ function libfota2.request(cbFnc, opts)
         end
         end
         -- 补齐version参数
         -- 补齐version参数
         if not opts.version then
         if not opts.version then
-            if mobile then
-                local x, y, z = string.match(_G.VERSION, "(%d+).(%d+).(%d+)")
-                opts.version = rtos.version():sub(2) .. "." .. x .. "." .. z
-            else
-                opts.version = _G.VERSION
-            end
+            local x, y, z = string.match(_G.VERSION, "(%d+).(%d+).(%d+)")
+            opts.version = rtos.version():sub(2) .. "." .. x .. "." .. z
         end
         end
         -- 补齐firmware_name参数
         -- 补齐firmware_name参数
         if not opts.firmware_name then
         if not opts.firmware_name then