summaryrefslogtreecommitdiff
path: root/tools/dfu.py
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2021-10-25 10:41:32 -0700
committerDamien George <damien@micropython.org>2021-11-01 15:46:59 +1100
commitcb99ca9862827f57c370555841810e98701ecfa2 (patch)
tree57312da0dbe2b41c25fc3c82e69cc6e837f7712c /tools/dfu.py
parent0adea4071608e6e6b266cccd0a7fce9bc190fb95 (diff)
tools/dfu.py: Make tool work with python3 when parsing DFU files.
Diffstat (limited to 'tools/dfu.py')
-rwxr-xr-xtools/dfu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dfu.py b/tools/dfu.py
index 6591436e9..39d68f3b6 100755
--- a/tools/dfu.py
+++ b/tools/dfu.py
@@ -20,7 +20,7 @@ def consume(fmt, data, names):
def cstring(string):
- return string.split("\0", 1)[0]
+ return string.split(b"\0", 1)[0]
def compute_crc(data):