mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 20:53:35 +08:00
bit2bin: don't print string terminator
This commit is contained in:
parent
9a509e5070
commit
5de319d76a
@ -32,7 +32,7 @@ def bit2bin(bit, bin, flip=False):
|
||||
if key in "abcd":
|
||||
d = bit.read(*struct.unpack(">H", bit.read(2)))
|
||||
assert d.endswith(b"\x00")
|
||||
d = d.decode()
|
||||
d = d[:-1].decode()
|
||||
name = {
|
||||
"a": "Design",
|
||||
"b": "Part name",
|
||||
|
Loading…
Reference in New Issue
Block a user