mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-17 11:58:13 +00:00
fix transport_hid for python2
This commit is contained in:
parent
fb648a241e
commit
54426761c6
@ -134,7 +134,7 @@ class HidTransport(Transport):
|
||||
if len(chunk) != 64:
|
||||
raise TransportException('Unexpected chunk size: %d' % len(chunk))
|
||||
if self.hid_version == 2:
|
||||
self.hid.handle.write(b'\0' + chunk)
|
||||
self.hid.handle.write(b'\0' + bytearray(chunk))
|
||||
else:
|
||||
self.hid.handle.write(chunk)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user