Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 6e985b5

Browse files
committed
Support multi-interface application
1 parent 74bbfe8 commit 6e985b5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

btchip/btchipComm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,9 @@ def getDongle(debug=False):
220220
hidDevicePath = hidDevice['path']
221221
ledger = True
222222
if hidDevice['vendor_id'] == 0x2c97:
223-
hidDevicePath = hidDevice['path']
224-
ledger = True
223+
if ('interface_number' in hidDevice and hidDevice['interface_number'] == 0) or ('usage_page' in hidDevice and hidDevice['usage_page'] == 0xffa0):
224+
hidDevicePath = hidDevice['path']
225+
ledger = True
225226
if hidDevice['vendor_id'] == 0x2581 and hidDevice['product_id'] == 0x1807:
226227
hidDevicePath = hidDevice['path']
227228
if hidDevicePath is not None:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
here = dirname(__file__)
88
setup(
99
name='btchip-python',
10-
version='0.1.25',
10+
version='0.1.26',
1111
author='BTChip',
1212
author_email='[email protected]',
1313
description='Python library to communicate with Ledger Nano dongle',

0 commit comments

Comments
 (0)