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:
parent
450bd77f67
commit
1b177ba8b8
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue