From 6aaa5928e2f788268b0a10905747f4074971ceb5 Mon Sep 17 00:00:00 2001 From: slush0 Date: Mon, 27 Jun 2016 22:16:34 +0200 Subject: [PATCH] Fixed _write_chunk for hid_version==2 --- trezorlib/transport_hid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trezorlib/transport_hid.py b/trezorlib/transport_hid.py index 6ee531c..aaea6a7 100644 --- a/trezorlib/transport_hid.py +++ b/trezorlib/transport_hid.py @@ -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)