1
0
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:
Pavol Rusnak 2017-10-23 17:28:01 +02:00
parent fb648a241e
commit 54426761c6
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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)