Skip to content

Commit 2c47f5c

Browse files
authored
Merge pull request #157 from jmwanderer/arduino
Fix hang on ESP32 (Issue# 156)
2 parents 0bbc0b2 + e5e99d5 commit 2c47f5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PN532_SPI.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ void PN532_SPI::begin()
2121

2222
_spi->begin();
2323
_spi->beginTransaction(SPISettings(1000000, LSBFIRST, SPI_MODE0));
24+
_spi->endTransaction();
2425
#if defined(ARDUINO_XIAO_RA4M1) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_ARCH_RP2350)
2526
#else
2627
// _spi->setDataMode(SPI_MODE0); // PN532 only supports mode0

0 commit comments

Comments
 (0)