浏览代码

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

Wendal Chen 1 年之前
父节点
当前提交
d8a826a31a
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      script/libs/libfota2.lua

+ 2 - 6
script/libs/libfota2.lua

@@ -173,12 +173,8 @@ function libfota2.request(cbFnc, opts)
         end
         -- 补齐version参数
         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
         -- 补齐firmware_name参数
         if not opts.firmware_name then