Skip to content

Commit

Permalink
fix HW device check
Browse files Browse the repository at this point in the history
  • Loading branch information
gpdionisio committed May 21, 2018
1 parent 1f5811f commit ae13a26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/hwdevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ def __init__(self, *args, **kwargs):
printDbg("Creating HW device class")
self.initDevice()


@process_ledger_exceptions
def initDevice(self):
try:
if hasattr(self, 'dongle'):
self.dongle.close()
self.dongle = getDongle(False)
printOK('Ledger Nano S drivers found')
self.chip = btchip(self.dongle)
Expand Down
3 changes: 2 additions & 1 deletion src/mainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ def myPopUp2(self, messType, messTitle, messText, singleButton=QMessageBox.Ok):
@pyqtSlot()
def onCheckHw(self):
printDbg("Checking for HW device...")
self.runInThread(self.updateHWstatus, (), self.showHWstatus)
self.updateHWstatus(None)
self.showHWstatus()



Expand Down

0 comments on commit ae13a26

Please sign in to comment.