sim-atr command: enable the LED when the command is active.
Change-Id: I50c125d46233e86003cc14ec9b5bac47127e8776
diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c
index 5b10c5f..ea07683 100644
--- a/sysmoOCTSIM/main.c
+++ b/sysmoOCTSIM/main.c
@@ -239,6 +239,7 @@
// note: ISO/IEC 7816-3:2006 section 6.4 provides the deactivation sequence, but not the minimum corresponding times
settings.rstin = true;
settings.cmdvcc = false;
+ settings.led = true;
ncn8025_set(slotnr, &settings);
// TODO wait some time for card to be completely deactivated
@@ -293,6 +294,12 @@
}
}
printf("\r\n");
+
+ /* disable VCC and LED, re-enable RST */
+ settings.cmdvcc = false;
+ settings.rstin = true;
+ settings.led = false;
+ ncn8025_set(slotnr, &settings);
}
extern void testmode_init(void);