Skip to content

Commit 2002d33

Browse files
committed
pn532: bump InListPassiveTarget response_length to 64 to handle long ATS
1 parent e281ef9 commit 2002d33

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)