Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Adafruit_PN532.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ byte pn532response_firmwarevers[] = {

// If using Native Port on Arduino Zero or Due define as SerialUSB
#define PN532DEBUGPRINT Serial ///< Fixed name for debug Serial instance
//#define PN532DEBUGPRINT SerialUSB ///< Fixed name for debug Serial instance
// #define PN532DEBUGPRINT SerialUSB ///< Fixed name for debug Serial instance

#define PN532_PACKBUFFSIZ 64 ///< Packet buffer size in bytes
byte pn532_packetbuffer[PN532_PACKBUFFSIZ]; ///< Packet buffer used in various
Expand Down Expand Up @@ -326,7 +326,7 @@ bool Adafruit_PN532::sendCommandCheckAck(uint8_t *cmd, uint8_t cmdlen,
// I2C works without using IRQ pin by polling for RDY byte
// seems to work best with some delays between transactions
uint8_t SLOWDOWN = 0;
if (i2c_dev)
if (i2c_dev || spi_dev) // SPI and I2C need 1ms slow for page reads
SLOWDOWN = 1;

// write the command
Expand Down