mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 11:39:03 +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")
|
||||
|
||||
if self.hid_version == 2:
|
||||
self.hid.write([0,] + chunk)
|
||||
self.hid.write(b'\0' + chunk)
|
||||
else:
|
||||
self.hid.write(chunk)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user