From fd4ed5162cdcc39147014cf47dd38d054c0ab316 Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Thu, 11 Oct 2012 22:22:57 +0200 Subject: [PATCH] selecting MF on reset and power up --- virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py b/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py index 2b441cf..4fce9b6 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py @@ -38,6 +38,7 @@ class SmartcardOS(object): def powerUp(self): """Powers up the card""" + self.mf.current = self.mf pass def powerDown(self): @@ -46,6 +47,7 @@ class SmartcardOS(object): def reset(self): """Performs a warm reset of the card (no power down)""" + self.mf.current = self.mf pass def execute(self, msg):