1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 11:09:01 +00:00

Fixed _write_chunk for hid_version==2

This commit is contained in:
slush0 2016-06-27 22:16:34 +02:00
parent 9b409ae6a4
commit 6aaa5928e2

View File

@ -87,7 +87,7 @@ class _HidTransport(object):
raise Exception("Unexpected data length")
if self.hid_version == 2:
self.hid.write([0,] + chunk)
self.hid.write(b'\0' + chunk)
else:
self.hid.write(chunk)