1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

transport: force V1 protocol for T2 for now

This commit is contained in:
Pavol Rusnak 2018-02-27 18:30:09 +01:00
parent 6e1eb8e664
commit 4cfcd93d48
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 4 additions and 2 deletions

View File

@ -66,7 +66,8 @@ class HidTransport(Transport):
hid_handle = HidHandle(device['path'])
if protocol is None:
force_v1 = os.environ.get('TREZOR_TRANSPORT_V1', '0')
# force_v1 = os.environ.get('TREZOR_TRANSPORT_V1', '0')
force_v1 = True
if is_trezor2(device) and not int(force_v1):
protocol = ProtocolV2()

View File

@ -75,7 +75,8 @@ class WebUsbTransport(Transport):
handle = WebUsbHandle(device)
if protocol is None:
force_v1 = os.environ.get('TREZOR_TRANSPORT_V1', '0')
# force_v1 = os.environ.get('TREZOR_TRANSPORT_V1', '0')
force_v1 = True
if is_trezor2(device) and not int(force_v1):
protocol = ProtocolV2()