From 557e287feb4ba7feed682a926a0531c392ff16ff Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Tue, 10 Nov 2015 12:08:44 +0100 Subject: [PATCH] Send on Slot updates over USB on CCID init When SIM card gets inserted into the SIM card slot, pinSmartCard is connected to GND; otherwise a pullup connects the pin to VCC. --- firmware/src_simtrace/ccid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/src_simtrace/ccid.c b/firmware/src_simtrace/ccid.c index 45efaa05..34a0b8e4 100644 --- a/firmware/src_simtrace/ccid.c +++ b/firmware/src_simtrace/ccid.c @@ -153,10 +153,10 @@ void CCID_init( void ) /* Decode ATR and print it */ ISO7816_Decode_ATR( pAtr ) ; - // FIXME. what if smcard is not inserted? if(PIO_Get(&pinSmartCard) == 0) { - printf("SIM card inserted\n\r"); CCID_Insertion(); + } else { + CCID_Removal(); } }