summaryrefslogtreecommitdiff
path: root/tools/pydfu.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pydfu.py')
-rwxr-xr-xtools/pydfu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pydfu.py b/tools/pydfu.py
index 394ecca5e..658ce59ae 100755
--- a/tools/pydfu.py
+++ b/tools/pydfu.py
@@ -85,7 +85,7 @@ def find_dfu_cfg_descr(descr):
nt = collections.namedtuple('CfgDescr',
['bLength', 'bDescriptorType', 'bmAttributes',
'wDetachTimeOut', 'wTransferSize', 'bcdDFUVersion'])
- return nt(*struct.unpack('<BBBHHH', bytes(descr)))
+ return nt(*struct.unpack('<BBBHHH', bytearray(descr)))
return None