mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 12:08:59 +00:00
fix interface number handling
This commit is contained in:
parent
fc1b12d80d
commit
915cf0099e
2
setup.py
2
setup.py
@ -3,7 +3,7 @@ from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='trezor',
|
||||
version='0.6.10',
|
||||
version='0.6.11',
|
||||
author='Bitcoin TREZOR',
|
||||
author_email='info@bitcointrezor.com',
|
||||
description='Python library for communicating with TREZOR Bitcoin Hardware Wallet',
|
||||
|
@ -46,7 +46,7 @@ class HidTransport(Transport):
|
||||
|
||||
if (vendor_id, product_id) in DEVICE_IDS:
|
||||
devices.setdefault(serial_number, [None, None])
|
||||
if interface_number == 0: # normal link
|
||||
if interface_number == 0 or interface_number == -1: # normal link
|
||||
devices[serial_number][0] = path
|
||||
elif interface_number == 1: # debug link
|
||||
devices[serial_number][1] = path
|
||||
|
Loading…
Reference in New Issue
Block a user