1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

fix v1 protocol

This commit is contained in:
mruddy 2017-09-03 11:53:15 -04:00 committed by Pavol Rusnak
parent c20cea6389
commit 02437d166a

View File

@ -40,7 +40,7 @@ class ProtocolV1(object):
while data:
# Report ID, data padded to 63 bytes
chunk = b'?' + data[:REPLEN - 1]
chunk = chunk.ljust(REPLEN, bytes([0x00]))
chunk = chunk.ljust(REPLEN, b'\x00')
transport.write_chunk(chunk)
data = data[63:]