Skip to content

Commit

Permalink
Merge pull request microsoft#71 from JohnAZoidberg/python3-padding
Browse files Browse the repository at this point in the history
utils/uf2conv.py: Fix padding with Python3
  • Loading branch information
mmoskal committed May 17, 2023
2 parents d8a1cda + 9332c30 commit 3419a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/uf2conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def convert_from_uf2(buf):
assert False, "Non-word padding size at " + ptr
while padding > 0:
padding -= 4
outp += b"\x00\x00\x00\x00"
outp.append(b"\x00\x00\x00\x00")
if familyid == 0x0 or ((hd[2] & 0x2000) and familyid == hd[7]):
outp.append(block[32 : 32 + datalen])
curraddr = newaddr + datalen
Expand Down

0 comments on commit 3419a7b

Please sign in to comment.