Skip to content

Commit cb99ca9

Browse files
dhylandsdpgeorge
authored andcommitted
tools/dfu.py: Make tool work with python3 when parsing DFU files.
1 parent 0adea40 commit cb99ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/dfu.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def consume(fmt, data, names):
2020

2121

2222
def cstring(string):
23-
return string.split("\0", 1)[0]
23+
return string.split(b"\0", 1)[0]
2424

2525

2626
def compute_crc(data):

0 commit comments

Comments
 (0)