Skip to content

Commit 74bbfe8

Browse files
committed
Fix multioutput detection
1 parent eb57d50 commit 74bbfe8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

btchip/btchip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def __init__(self, dongle):
7979
self.dongle = dongle
8080
self.needKeyCache = False
8181
try:
82-
firmware = self.getFirmwareVersion()['version'].split(".")
83-
self.multiOutputSupported = int(firmware[0]) >= 1 and int(firmware[1]) >= 1 and int(firmware[2]) >= 4
82+
firmware = self.getFirmwareVersion()['version']
83+
self.multiOutputSupported = tuple(map(int, (firmware.split(".")))) >= (1, 1, 4)
8484
if self.multiOutputSupported:
8585
self.scriptBlockLength = 50
8686
else:

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.24',
10+
version='0.1.25',
1111
author='BTChip',
1212
author_email='hello@ledger.fr',
1313
description='Python library to communicate with Ledger Nano dongle',

0 commit comments

Comments
 (0)