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:
parent
6e1eb8e664
commit
4cfcd93d48
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user