[Pcsclite-cvs-commit] r2357 - trunk/Drivers/ccid/src
Ludovic Rousseau
rousseau at alioth.debian.org
Fri Jan 26 17:57:46 CET 2007
Author: rousseau
Date: 2007-01-26 17:57:45 +0100 (Fri, 26 Jan 2007)
New Revision: 2357
Modified:
trunk/Drivers/ccid/src/commands.c
Log:
CmdGetSlotStatus(): the O2MICRO OZ 776 reader sends "card absent or
mute" errors when no card is inserted. We do not log this error since it
is normal execution and just fill the syslog files
Modified: trunk/Drivers/ccid/src/commands.c
===================================================================
--- trunk/Drivers/ccid/src/commands.c 2007-01-26 16:43:45 UTC (rev 2356)
+++ trunk/Drivers/ccid/src/commands.c 2007-01-26 16:57:45 UTC (rev 2357)
@@ -733,6 +733,12 @@
if (buffer[STATUS_OFFSET] & CCID_COMMAND_FAILED)
{
+#ifdef O2MICRO_OZ776_PATCH
+ /* the O2MICRO OZ 776 reader sends card absent or mute errors
+ * when no card is inserted */
+ if (! ((OZ776 == ccid_descriptor->readerID)
+ && (buffer[ERROR_OFFSET] == 0xFE)))
+#endif
ccid_error(buffer[ERROR_OFFSET], __FILE__, __LINE__, __FUNCTION__); /* bError */
/* card absent or mute is not an communication error */
More information about the Pcsclite-cvs-commit
mailing list