tests: Fix for card readers.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 9 Jan 2018 00:39:42 +0000 (09:39 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 9 Jan 2018 00:39:42 +0000 (09:39 +0900)
ChangeLog
tests/card_reader.py

index 6f2dcf8..e4c9b49 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-09  NIIBE Yutaka  <gniibe@fsij.org>
+
+       * tests/card_reader.py (CardReader.ccid_power_on): Fix for
+       other card readers for Gemalto's.
+
 2017-12-19  NIIBE Yutaka  <gniibe@fsij.org>
 
        * chopstx: Update to 1.7.
index 80a633a..74a6df1 100644 (file)
@@ -179,8 +179,8 @@ class CardReader(object):
             # TPDU reader configuration
             self.ns = 0
             self.nr = 0
-            # For Gemalto USB GemPC Pinpad SmartCard Reader
-            if self.__dev.idVendor == 0x08E6 and self.__dev.idProduct == 0x3478:
+            # For Gemalto's SmartCard Reader(s)
+            if self.__dev.idVendor == 0x08E6:
                 # Set PPS
                 pps = b"\xFF\x11\x18\xF6"
                 status, chain, ret_pps = self.ccid_send_data_block(pps)