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:
parent
c20cea6389
commit
02437d166a
@ -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:]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user