diff options
| author | Dave Hylands <dhylands@gmail.com> | 2021-10-25 10:41:32 -0700 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-11-01 15:46:59 +1100 |
| commit | cb99ca9862827f57c370555841810e98701ecfa2 (patch) | |
| tree | 57312da0dbe2b41c25fc3c82e69cc6e837f7712c /tools/dfu.py | |
| parent | 0adea4071608e6e6b266cccd0a7fce9bc190fb95 (diff) | |
tools/dfu.py: Make tool work with python3 when parsing DFU files.
Diffstat (limited to 'tools/dfu.py')
| -rwxr-xr-x | tools/dfu.py | 2 |
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): |
