mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-22 16:28:32 +03:00
Re-fixed ATR error not send on reset
This commit is contained in:
@@ -167,7 +167,7 @@ static void RDRtoPCDatablock_ATR( void )
|
|||||||
|
|
||||||
TRACE_DEBUG(".");
|
TRACE_DEBUG(".");
|
||||||
|
|
||||||
// status = ISO7816_Datablock_ATR( Atr, &length );
|
status = ISO7816_Datablock_ATR( Atr, &length );
|
||||||
// ISO7816_Decode_ATR( Atr );
|
// ISO7816_Decode_ATR( Atr );
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
@@ -696,10 +696,9 @@ static void vCCIDSendResponse( void )
|
|||||||
do {
|
do {
|
||||||
bStatus = USBD_Write( CCID_EPT_DATA_IN, (void*)&ccidDriver.sCcidMessage,
|
bStatus = USBD_Write( CCID_EPT_DATA_IN, (void*)&ccidDriver.sCcidMessage,
|
||||||
ccidDriver.sCcidMessage.bSizeToSend, 0, 0 );
|
ccidDriver.sCcidMessage.bSizeToSend, 0, 0 );
|
||||||
|
|
||||||
TRACE_DEBUG("bStatus: 0x%x\n\r", bStatus);
|
|
||||||
|
|
||||||
} while (bStatus != USBD_STATUS_SUCCESS);
|
} while (bStatus != USBD_STATUS_SUCCESS);
|
||||||
|
|
||||||
|
TRACE_DEBUG("bStatus: 0x%x\n\r", bStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -918,10 +917,9 @@ void CCID_SmartCardRequest( void )
|
|||||||
sizeof(S_ccid_bulk_out_header),
|
sizeof(S_ccid_bulk_out_header),
|
||||||
(TransferCallback)&CCIDCommandDispatcher,
|
(TransferCallback)&CCIDCommandDispatcher,
|
||||||
(void*)0 );
|
(void*)0 );
|
||||||
|
|
||||||
// TRACE_DEBUG("bStat: %x\n\r", bStatus);
|
|
||||||
}
|
}
|
||||||
while (bStatus != USBD_STATUS_SUCCESS);
|
while (bStatus != USBD_STATUS_SUCCESS);
|
||||||
|
TRACE_DEBUG("bStat: %x\n\r", bStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user