px_uploader: fix Python3 upload

This fixes the error below when using Python3:

  File "Tools/px_uploader.py", line 128, in
  __init__
      self.image.append('\xff')
      TypeError: an integer is required
This commit is contained in:
Julian Oes
2018-02-03 11:02:39 +01:00
committed by Daniel Agar
parent 305859f356
commit d175a75691
+1 -1
View File
@@ -125,7 +125,7 @@ class firmware(object):
# pad image to 4-byte length
while ((len(self.image) % 4) != 0):
self.image.append('\xff')
self.image.extend(b'\xff')
def property(self, propname):
return self.desc[propname]