tests: Fix for card readers.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user