From 36780087b6725b91669a612b227321045fbcf958 Mon Sep 17 00:00:00 2001 From: Sucareto <28331534+Sucareto@users.noreply.github.com> Date: Thu, 25 May 2023 12:10:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E9=9D=9E=E6=A0=87=E5=87=86?= =?UTF-8?q?=20aime=E3=80=81banapass=20=E5=8D=A1=E3=80=82=20SAK=20=E5=88=97?= =?UTF-8?q?=E8=A1=A8=EF=BC=9Ahttps://www.nxp.com/docs/en/application-note/?= =?UTF-8?q?AN10833.pdf#page=3D11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/PN532.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PN532.cpp b/src/PN532.cpp index f4df823..c9d16d7 100644 --- a/src/PN532.cpp +++ b/src/PN532.cpp @@ -242,6 +242,9 @@ bool PN532::readPassiveTargetID(uint8_t cardbaudrate, uint8_t *uid, uint8_t *uid if (pn532_packetbuffer[0] != 1) return 0; + if (pn532_packetbuffer[4] != 0x08) // SAK == 0x08 + return 0; + uint16_t sens_res = pn532_packetbuffer[2]; sens_res <<= 8; sens_res |= pn532_packetbuffer[3];