tools/dfu.py: Make tool work with python3 when parsing DFU files.
This commit is contained in:
parent
0adea40716
commit
cb99ca9862
@ -20,7 +20,7 @@ def consume(fmt, data, names):
|
|||||||
|
|
||||||
|
|
||||||
def cstring(string):
|
def cstring(string):
|
||||||
return string.split("\0", 1)[0]
|
return string.split(b"\0", 1)[0]
|
||||||
|
|
||||||
|
|
||||||
def compute_crc(data):
|
def compute_crc(data):
|
||||||
|
Loading…
Reference in New Issue
Block a user