Skip to content

Commit

Permalink
Init SPI2 if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolac committed Jan 5, 2021
1 parent a60f6db commit 1109102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/SPI/SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void SPIClass::detachInterrupt() {
}

#if SPI_INTERFACES_COUNT > 0
#if defined(NRF52_SERIES) && !defined(NRF52805_XXAA)
#if defined(NRF_SPI2)
SPIClass SPI (NRF_SPI2, PIN_SPI_MISO, PIN_SPI_SCK, PIN_SPI_MOSI);
#else
SPIClass SPI (NRF_SPI0, PIN_SPI_MISO, PIN_SPI_SCK, PIN_SPI_MOSI);
Expand Down

0 comments on commit 1109102

Please sign in to comment.