PN532: Enable 1ms ClockStretch

Enable 1ms clock stretch as per datasheet Table 12.25 (Timing for the I2C interface)
This commit is contained in:
Andre Thomas 2019-01-05 22:05:53 +02:00 committed by GitHub
parent 9da900dfb8
commit 8d1dee8929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -239,6 +239,8 @@ bool PN532_SAMConfig(void)
void PN532_Detect(void)
{
if ((pn532_i2c_detected) || (pn532_i2c_disable)) { return; }
Wire.setClockStretchLimit(1000); // Enable 1ms clock stretch as per datasheet Table 12.25 (Timing for the I2C interface)
uint32_t ver = PN532_getFirmwareVersion();
if (ver) {