mirror of
https://github.com/micropython/micropython.git
synced 2025-07-21 21:11:12 +02:00
tools/dfu.py: Make tool work with python3 when parsing DFU files.
This commit is contained in:
committed by
Damien George
parent
0adea40716
commit
cb99ca9862
@@ -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):
|
||||
|
Reference in New Issue
Block a user