forked from M-Labs/artiq
1
0
Fork 0

bit2bin: don't print string terminator

This commit is contained in:
Robert Jördens 2018-10-08 10:13:03 +02:00
parent 9a509e5070
commit 5de319d76a
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def bit2bin(bit, bin, flip=False):
if key in "abcd": if key in "abcd":
d = bit.read(*struct.unpack(">H", bit.read(2))) d = bit.read(*struct.unpack(">H", bit.read(2)))
assert d.endswith(b"\x00") assert d.endswith(b"\x00")
d = d.decode() d = d[:-1].decode()
name = { name = {
"a": "Design", "a": "Design",
"b": "Part name", "b": "Part name",