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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Aug 24 09:46:46 UTC 2010


Author: rousseau
Date: Tue Aug 24 09:46:45 2010
New Revision: 5182

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5182
Log:
ccid_open_hack_pre(): call InterruptRead() only if the device has an
interrupt pipe endpoint (3 in total)

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

Modified: trunk/Drivers/ccid/src/ccid.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ccid.c?rev=5182&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ccid.c (original)
+++ trunk/Drivers/ccid/src/ccid.c Tue Aug 24 09:46:45 2010
@@ -67,7 +67,8 @@
 	}
 
 	/* CCID */
-	if (PROTOCOL_CCID == ccid_descriptor->bInterfaceProtocol)
+	if ((PROTOCOL_CCID == ccid_descriptor->bInterfaceProtocol)
+		&& (3 == ccid_descriptor -> bNumEndpoints))
 	{
 #ifndef TWIN_SERIAL
 		/* just wait for 100ms in case a notification is in the pipe */




More information about the Pcsclite-cvs-commit mailing list