[Pcsclite-cvs-commit] CVS Drivers/ccid/src
CVS User rousseau
ludovic.rousseau@free.fr
Fri, 25 Feb 2005 10:14:49 -0700
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv24783
Modified Files:
ifdhandler.c
Log Message:
IFDHSetProtocolParameters(): use "card_baudrate <= ccid_desc->dwMaxDataRate"
instead of "card_baudrate < ccid_desc->dwMaxDataRate" to not miss the
maximum speed value
--- /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c 2004/09/30 14:12:20 1.54
+++ /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c 2005/02/25 17:14:46 1.55
@@ -17,7 +17,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: ifdhandler.c,v 1.54 2004/09/30 14:12:20 rousseau Exp $ */
+/* $Id: ifdhandler.c,v 1.55 2005/02/25 17:14:46 rousseau Exp $ */
#include <stdio.h>
#include <string.h>
@@ -465,7 +465,7 @@
* ATR_DEFAULT_D / ATR_DEFAULT_F);
/* if the reader is fast enough */
- if ((card_baudrate < ccid_desc->dwMaxDataRate)
+ if ((card_baudrate <= ccid_desc->dwMaxDataRate)
/* and the card does not try to lower the default speed */
&& (card_baudrate > default_baudrate ))
{