1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 01:05:10 +03:00

Fixed: OpenTX Bootloader bin2lbm conversion error (last partial chunk was missing)

This commit is contained in:
Damjan Adamic 2015-12-28 21:43:21 +01:00
parent 450bd77f67
commit 1b177ba8b8

View file

@ -10,7 +10,7 @@ fileout = sys.argv[2]
with open(filename, "rb") as fr:
sts = fr.read()
# Parse into chunks of 16 bytes
sts = [sts[i * 16:(i + 1) * 16] for i in range(len(sts) // 16)]
sts = [sts[i:i+16] for i in range(0, len(sts), 16)]
with open(fileout, "w") as fw:
for st in sts: