From c9fd4061b4a3b130a9cd93af79473021172b7fff Mon Sep 17 00:00:00 2001 From: Ernesto Ruge Date: Sat, 6 Mar 2021 12:40:37 +0100 Subject: [PATCH 1/2] accept longer ATS for ISO14443A-4 cards --- adafruit_pn532/adafruit_pn532.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_pn532/adafruit_pn532.py b/adafruit_pn532/adafruit_pn532.py index f674d5e..6671dc0 100644 --- a/adafruit_pn532/adafruit_pn532.py +++ b/adafruit_pn532/adafruit_pn532.py @@ -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: From d65fe24c7f9d405660a9ea046cc25dd4e52d2e81 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Tue, 4 Jan 2022 17:19:13 -0600 Subject: [PATCH 2/2] merge from main --- adafruit_pn532/i2c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_pn532/i2c.py b/adafruit_pn532/i2c.py index f8b2662..1ae7e83 100644 --- a/adafruit_pn532/i2c.py +++ b/adafruit_pn532/i2c.py @@ -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