Skip to content
Snippets Groups Projects
Commit 67ae7273 authored by px4dev's avatar px4dev
Browse files

Bootloader requires images be a multiple of 4 bytes; pad to comply.

parent 43019ba6
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,10 @@ class firmware(object):
self.image = zlib.decompress(base64.b64decode(self.desc['image']))
# pad image to 4-byte length
while ((len(self.image) % 4) != 0):
self.image += b'\x00'
def property(self, propname):
return self.desc[propname]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment