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.
This commit is contained in:
Christina Quast
2015-11-10 12:08:44 +01:00
parent 899348ebbe
commit 557e287feb

View File

@@ -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();
}
}