Skip to content

Commit 1453393

Browse files
authored
Merge pull request #70 from gdudek/fix/long-ats-buffer
pn532: bump InListPassiveTarget response_length to 64 to handle long ATS
2 parents 14cc543 + 2002d33 commit 1453393

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adafruit_pn532/adafruit_pn532.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def get_passive_target(self, timeout: float = 1) -> Optional[Union[bytes, bytear
409409
card's UID. This reduces the amount of time spend checking for a card.
410410
"""
411411
response = self.process_response(
412-
_COMMAND_INLISTPASSIVETARGET, response_length=30, timeout=timeout
412+
_COMMAND_INLISTPASSIVETARGET, response_length=64, timeout=timeout
413413
)
414414
# If no response is available return None to indicate no card is present.
415415
if response is None:

0 commit comments

Comments
 (0)