[Pcsclite-git-commit] [CCID] 05/05: The Feitian R502 DUAL reader has 3 interfaces

Ludovic Rousseau rousseau at moszumanska.debian.org
Wed Sep 16 16:31:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository CCID.

commit 2517cbe1672b4af57420131634eff376ede1f58b
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Wed Sep 16 18:23:36 2015 +0200

    The Feitian R502 DUAL reader has 3 interfaces
    
    If USE_COMPOSITE_AS_MULTISLOT is defined the Feitian R502 reader is
    reported as 3 slots:
    iInterface: R502 Contactless Reader
    iInterface: R502 Contact Reader
    iInterface: R502 SAM1 Reader
---
 src/ifdhandler.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/ifdhandler.c b/src/ifdhandler.c
index b34f01e..9e125bc 100644
--- a/src/ifdhandler.c
+++ b/src/ifdhandler.c
@@ -456,8 +456,11 @@ EXTERNAL RESPONSECODE IFDHGetCapabilities(DWORD Lun, DWORD Tag,
 					 * multi-slot reader */
 					int readerID =  get_ccid_descriptor(reader_index) -> readerID;
 
-					if ((GEMALTOPROXDU == readerID) || (GEMALTOPROXSU == readerID) || (FEITIANR502DUAL == readerID))
+					if ((GEMALTOPROXDU == readerID) || (GEMALTOPROXSU == readerID))
 						*Value = 2;
+
+					if (FEITIANR502DUAL == readerID)
+						*Value = 3;
 				}
 #endif
 				DEBUG_INFO2("Reader supports %d slot(s)", *Value);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/CCID.git



More information about the Pcsclite-cvs-commit mailing list