[Pcsclite-cvs-commit] r2045 - trunk/Drivers/ccid/src/openct

Ludovic Rousseau rousseau at costa.debian.org
Fri May 19 11:53:57 UTC 2006


Author: rousseau
Date: 2006-05-19 11:53:54 +0000 (Fri, 19 May 2006)
New Revision: 2045

Modified:
   trunk/Drivers/ccid/src/openct/proto-t1.c
Log:
t1_transceive(): add a debug message if we are in state DEAD. The card
must be reset first.


Modified: trunk/Drivers/ccid/src/openct/proto-t1.c
===================================================================
--- trunk/Drivers/ccid/src/openct/proto-t1.c	2006-05-16 22:00:31 UTC (rev 2044)
+++ trunk/Drivers/ccid/src/openct/proto-t1.c	2006-05-19 11:53:54 UTC (rev 2045)
@@ -173,7 +173,10 @@
 
 	/* we can't talk to a dead card / reader. Reset it! */
 	if (t1->state == DEAD)
+	{
+		DEBUG_CRITICAL("T=1 state machine is DEAD. Reset the card first.");
 		return -1;
+	}
 
 	t1->state = SENDING;
 	retries = t1->retries;




More information about the Pcsclite-cvs-commit mailing list