Skip to content

Commit

Permalink
Update Adafruit_PN532.cpp
Browse files Browse the repository at this point in the history
added 1ms delay for spi, because V3 board from Aliexpress doesn't read cards properly without it
  • Loading branch information
Flick3rF3r authored Jan 23, 2024
1 parent f4e1a91 commit 585ea1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Adafruit_PN532.cpp
Original file line number Diff line number Diff line change
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) // added spi since V3 Chinese counterpart board doesn't work properly without 1ms delay
SLOWDOWN = 1;

// write the command
Expand Down

0 comments on commit 585ea1d

Please sign in to comment.