Просмотр исходного кода

fix: 刷机脚本air302.py有个修改忘记提交了

Wendal Chen 5 лет назад
Родитель
Сommit
fda2379514
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      bsp/air302/air302.py

+ 2 - 0
bsp/air302/air302.py

@@ -147,6 +147,8 @@ def _pkg():
         shutil.copy(PLAT_ROOT + "out/ec616_0h00/air302/air302.bin", "tmp/ec/luatos.bin")
         shutil.copy(PLAT_ROOT + "out/ec616_0h00/air302/comdb.txt", "tmp/ec/comdb.txt")
         shutil.copy(FTC_PATH + "image/bootloader.bin", "tmp/ec/bootloader.bin")
+        with open("tmp/ec/bootloader_head.bin", "w") as f:
+            f.write("")
         #shutil.copy(FTC_PATH + "image/bootloader_head.bin", "tmp/ec/bootloader_head.bin")
     elif os.path.exists(EC_PATH) and EC_PATH.endswith(".ec") :
         with zipfile.ZipFile(EC_PATH) as zip :