Fix race in SPI endTransaction
This commit is contained in:
parent
db77195404
commit
2b6d47ac17
@ -127,8 +127,8 @@ void SPIClass::beginTransaction(SPISettings settings)
|
||||
void SPIClass::endTransaction()
|
||||
{
|
||||
if(_inTransaction){
|
||||
spiEndTransaction(_spi);
|
||||
_inTransaction = false;
|
||||
spiEndTransaction(_spi);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user