From cbc8ab7ab9fad43ae8d5ec05c0ed594b44e1bc48 Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Thu, 21 May 2015 21:56:08 +0200 Subject: [PATCH] implement reset() for relay card fixes #48 --- virtualsmartcard/src/vpicc/virtualsmartcard/cards/Relay.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/cards/Relay.py b/virtualsmartcard/src/vpicc/virtualsmartcard/cards/Relay.py index 6d4eda6..704600c 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/cards/Relay.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/cards/Relay.py @@ -104,6 +104,10 @@ class RelayOS(SmartcardOS): logging.error("Error disconnecting from card: %s", str(e)) sys.exit() + def reset(self): + self.powerDown() + self.powerUp() + def execute(self, msg): # sendCommandAPDU() expects a list of APDU bytes apdu = map(ord, msg)