[Pcsclite-cvs-commit] r5695 - /trunk/Drivers/ccid/src/ifdhandler.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Apr 8 12:52:56 UTC 2011


Author: rousseau
Date: Fri Apr  8 12:52:51 2011
New Revision: 5695

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5695
Log:
T0_card_timeout/T1_card_timeout: set timeout to 60 seconds instead of 60
milliseconds if the ATR is non ISO

Modified:
    trunk/Drivers/ccid/src/ifdhandler.c

Modified: trunk/Drivers/ccid/src/ifdhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ifdhandler.c?rev=5695&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Fri Apr  8 12:52:51 2011
@@ -1932,7 +1932,7 @@
 
 	/* may happen with non ISO cards */
 	if ((0 == f) || (0 == d) || (0 == clock_frequency))
-		return 60;	/* 60 seconds */
+		return 60 * 1000;	/* 60 seconds */
 
 	/* EGT */
 	/* see ch. 6.5.3 Extra Guard Time, page 12 of ISO 7816-3 */
@@ -1977,7 +1977,7 @@
 
 	/* may happen with non ISO cards */
 	if ((0 == f) || (0 == d) || (0 == clock_frequency))
-		return 60;	/* 60 seconds */
+		return 60 * 1000;	/* 60 seconds */
 
 	/* see ch. 6.5.2 Transmission factors F and D, page 12 of ISO 7816-3 */
 	etu = f / d / clock_frequency;




More information about the Pcsclite-cvs-commit mailing list