[Pcsclite-cvs-commit] r6820 - trunk/Drivers/ccid/src

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Tue Jan 7 14:23:17 UTC 2014


Author: rousseau
Date: 2014-01-07 14:23:17 +0000 (Tue, 07 Jan 2014)
New Revision: 6820

Modified:
   trunk/Drivers/ccid/src/ccid.c
Log:
ccid_open_hack_post(): use default read timeout for CmdEscape

Use the default read timeout (DEFAULT_COM_READ_TIMEOUT at 3 seconds)
instead of the current value of 100 ms (set in
CreateChannelByNameOrChannel) that is too short to load the l10n strings
in a pinpad reader.


Modified: trunk/Drivers/ccid/src/ccid.c
===================================================================
--- trunk/Drivers/ccid/src/ccid.c	2014-01-07 14:12:27 UTC (rev 6819)
+++ trunk/Drivers/ccid/src/ccid.c	2014-01-07 14:23:17 UTC (rev 6820)
@@ -427,7 +427,7 @@
 				}
 
 				(void)sleep(1);
-				if (IFD_SUCCESS == CmdEscape(reader_index, cmd, sizeof(cmd), res, &length_res, 0))
+				if (IFD_SUCCESS == CmdEscape(reader_index, cmd, sizeof(cmd), res, &length_res, DEFAULT_COM_READ_TIMEOUT))
 				{
 					DEBUG_COMM("l10n string loaded successfully");
 				}




More information about the Pcsclite-cvs-commit mailing list