mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-06 01:17:42 +00:00
Merge pull request #4832 from andrethomas/patch-1
PN532: Enable 1ms ClockStretch
This commit is contained in:
commit
de996cb281
@ -239,6 +239,8 @@ bool PN532_SAMConfig(void)
|
|||||||
void PN532_Detect(void)
|
void PN532_Detect(void)
|
||||||
{
|
{
|
||||||
if ((pn532_i2c_detected) || (pn532_i2c_disable)) { return; }
|
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();
|
uint32_t ver = PN532_getFirmwareVersion();
|
||||||
if (ver) {
|
if (ver) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user