1
0
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:
Pavol Rusnak 2016-01-17 00:37:39 +01:00
parent fc1b12d80d
commit 915cf0099e
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

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