1
0
mirror of https://github.com/Sucareto/ESP32-CardReader.git synced 2024-11-23 23:00:56 +01:00

屏蔽非标准 aime、banapass 卡。

SAK 列表:https://www.nxp.com/docs/en/application-note/AN10833.pdf#page=11
This commit is contained in:
Sucareto 2023-05-25 12:10:30 +08:00
parent ad89252b66
commit 36780087b6

View File

@ -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];