j
This commit is contained in:
BTChip 2016-09-02 09:53:45 +02:00
commit dcf012d862
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ class Dongle(object):
__metaclass__ = ABCMeta
@abstractmethod
def exchange(self, apdu, timeout=20000):
def exchange(self, apdu, timeout=20):
pass
@abstractmethod
@ -62,7 +62,7 @@ class HIDDongleHIDAPI(Dongle, DongleWait):
self.waitImpl = self
self.opened = True
def exchange(self, apdu, timeout=20000):
def exchange(self, apdu, timeout=20):
if self.debug:
print "=> %s" % hexlify(apdu)
if self.ledger:
@ -146,7 +146,7 @@ class DongleSmartcard(Dongle):
self.waitImpl = self
self.opened = True
def exchange(self, apdu, timeout=20000):
def exchange(self, apdu, timeout=20):
if self.debug:
print "=> %s" % hexlify(apdu)
response, sw1, sw2 = self.device.transmit(toBytes(hexlify(apdu)))