Fix setup for Nano S firmware version < 1.2

This commit is contained in:
BTChip 2016-08-28 22:22:58 +02:00
parent 3d2de1036c
commit 57ce0f500a
1 changed files with 2 additions and 4 deletions

View File

@ -450,9 +450,6 @@ class LedgerPlugin(HW_PluginBase):
dev.open_path(device.path)
dev.set_nonblocking(True)
return HIDDongleHIDAPI(dev, ledger, BTCHIP_DEBUG)
def verify_btchip_pin(self):
pass
def create_client(self, device, handler):
self.handler = handler
@ -468,7 +465,8 @@ class LedgerPlugin(HW_PluginBase):
client = devmgr.client_by_id(device_id)
#client.handler = wizard
client.handler = self.create_handler(wizard)
client.get_xpub('m')
#client.get_xpub('m')
client.get_xpub("m/44'/0'") # TODO replace by direct derivation once Nano S > 1.1
def get_xpub(self, device_id, derivation, wizard):
devmgr = self.device_manager()