implement reset() for relay card

fixes #48
This commit is contained in:
Frank Morgner
2015-05-21 21:56:08 +02:00
parent 90672d3900
commit cbc8ab7ab9

View File

@@ -104,6 +104,10 @@ class RelayOS(SmartcardOS):
logging.error("Error disconnecting from card: %s", str(e)) logging.error("Error disconnecting from card: %s", str(e))
sys.exit() sys.exit()
def reset(self):
self.powerDown()
self.powerUp()
def execute(self, msg): def execute(self, msg):
# sendCommandAPDU() expects a list of APDU bytes # sendCommandAPDU() expects a list of APDU bytes
apdu = map(ord, msg) apdu = map(ord, msg)