mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-21 12:02:19 +00:00
Fixed _write_chunk for hid_version==2
This commit is contained in:
parent
9b409ae6a4
commit
6aaa5928e2
@ -87,7 +87,7 @@ class _HidTransport(object):
|
|||||||
raise Exception("Unexpected data length")
|
raise Exception("Unexpected data length")
|
||||||
|
|
||||||
if self.hid_version == 2:
|
if self.hid_version == 2:
|
||||||
self.hid.write([0,] + chunk)
|
self.hid.write(b'\0' + chunk)
|
||||||
else:
|
else:
|
||||||
self.hid.write(chunk)
|
self.hid.write(chunk)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user