diff --git a/libraries/SPI/src/SPI.cpp b/libraries/SPI/src/SPI.cpp index e1e7a15c..629b50bc 100644 --- a/libraries/SPI/src/SPI.cpp +++ b/libraries/SPI/src/SPI.cpp @@ -127,8 +127,8 @@ void SPIClass::beginTransaction(SPISettings settings) void SPIClass::endTransaction() { if(_inTransaction){ - spiEndTransaction(_spi); _inTransaction = false; + spiEndTransaction(_spi); } }