bool Adafruit_PN532::readPassiveTargetID(uint8_t cardbaudrate, uint8_t *uid, uint8_t *uidLength, uint8_t *sak, uint16_t timeout) { volatile bool bRes = 0x00; pn532_packetbuffer[0] = PN532_COMMAND_INLISTPASSIVETARGET; pn532_packetbuffer[1] = 1; // max 1 cards at once (we can set this to 2 later) pn532_packetbuffer[2] = cardbaudrate; //Send Command and dont wait until PN532 is ready sendCommandCheckAck(pn532_packetbuffer, 3, 2, 1); //inlist not sent -> send //this results in an RF field reset, which is needed by some tags to get recognized. pn532_packetbuffer[0] = PN532_COMMAND_INLISTPASSIVETARGET; pn532_packetbuffer[1] = 1; // max 1 cards at once (we can set this to 2 later) pn532_packetbuffer[2] = cardbaudrate; //Send Command and dont wait until PN532 is ready if (!sendCommandCheckAck(pn532_packetbuffer, 3, timeout, 1)) ...