tfix ledger: nano s did not work reliably since last fw update - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit cd19f788ccedd7ac050141cdd15c9905011c951e DIR parent db9cb63e79ec199db1983ba20137d692bc6807b7 HTML Author: SomberNight <somber.night@protonmail.com> Date: Thu, 22 Mar 2018 15:48:48 +0100 fix ledger: nano s did not work reliably since last fw update follow LedgerHQ/btchip-python@6e985b558f22d1fc0367f5c1730822750337cf94 Diffstat: M plugins/ledger/ledger.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) --- DIR diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py t@@ -523,8 +523,15 @@ class LedgerPlugin(HW_PluginBase): def get_btchip_device(self, device): ledger = False - if (device.product_key[0] == 0x2581 and device.product_key[1] == 0x3b7c) or (device.product_key[0] == 0x2581 and device.product_key[1] == 0x4b7c) or (device.product_key[0] == 0x2c97): - ledger = True + if device.product_key[0] == 0x2581 and device.product_key[1] == 0x3b7c: + ledger = True + if device.product_key[0] == 0x2581 and device.product_key[1] == 0x4b7c: + ledger = True + if device.product_key[0] == 0x2c97: + if device.interface_number == 0 or device.usage_page == 0xffa0: + ledger = True + else: + return None # non-compatible interface of a nano s or blue dev = hid.device() dev.open_path(device.path) dev.set_nonblocking(True)