mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user