Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Commit

Permalink
fix interface number handling
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak committed Jan 16, 2016
1 parent fc1b12d commit 915cf00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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',
Expand Down
2 changes: 1 addition & 1 deletion trezorlib/transport_hid.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def enumerate(cls):

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
Expand Down

0 comments on commit 915cf00

Please sign in to comment.