Merge pull request #47 from the-infinity/patch-1

accept longer ATS for ISO14443A-4 cards
This commit is contained in:
foamyguy 2022-01-04 18:11:30 -06:00 committed by GitHub
commit 9e9335a6c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -391,7 +391,7 @@ class PN532:
card's UID. This reduces the amount of time spend checking for a card.
"""
response = self.process_response(
_COMMAND_INLISTPASSIVETARGET, response_length=19, timeout=timeout
_COMMAND_INLISTPASSIVETARGET, response_length=30, timeout=timeout
)
# If no response is available return None to indicate no card is present.
if response is None:

View file

@ -32,7 +32,7 @@ class PN532_I2C(PN532):
def __init__(self, i2c, *, irq=None, reset=None, req=None, debug=False):
"""Create an instance of the PN532 class using I2C. Note that PN532
uses clock stretching. Optional IRQ pin (not used),
reset pin and debugging output.
resetp pin and debugging output.
"""
self.debug = debug
self._req = req