Merge pull request #811 from btchip/no_verbose_apdus

Do not display exchanged APDUs
This commit is contained in:
ThomasV 2014-09-01 10:01:41 +02:00
commit d8b1ddc9a7
1 changed files with 3 additions and 2 deletions

View File

@ -29,6 +29,7 @@ try:
from btchip.btchipPersoWizard import StartBTChipPersoDialog from btchip.btchipPersoWizard import StartBTChipPersoDialog
from btchip.btchipException import BTChipException from btchip.btchipException import BTChipException
BTCHIP = True BTCHIP = True
BTCHIP_DEBUG = False
except ImportError: except ImportError:
BTCHIP = False BTCHIP = False
@ -141,7 +142,7 @@ class BTChipWallet(NewWallet):
aborted = False aborted = False
if not self.client or self.client.bad: if not self.client or self.client.bad:
try: try:
d = getDongle(True) d = getDongle(BTCHIP_DEBUG)
d.setWaitImpl(DongleWaitQT(d)) d.setWaitImpl(DongleWaitQT(d))
self.client = btchip(d) self.client = btchip(d)
firmware = self.client.getFirmwareVersion()['version'].split(".") firmware = self.client.getFirmwareVersion()['version'].split(".")
@ -159,7 +160,7 @@ class BTChipWallet(NewWallet):
dialog = StartBTChipPersoDialog() dialog = StartBTChipPersoDialog()
dialog.exec_() dialog.exec_()
# Then fetch the reference again as it was invalidated # Then fetch the reference again as it was invalidated
d = getDongle(True) d = getDongle(BTCHIP_DEBUG)
d.setWaitImpl(DongleWaitQT(d)) d.setWaitImpl(DongleWaitQT(d))
self.client = btchip(d) self.client = btchip(d)
else: else: