Skip to content

Commit 9474331

Browse files
committed
Fix Nrf52810 SPI compile errors.
1 parent 0b00141 commit 9474331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SPI/SPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void SPIClass::detachInterrupt() {
254254
}
255255

256256
#if SPI_INTERFACES_COUNT > 0
257-
#if defined(NRF52_SERIES)
257+
#if defined(NRF52_SERIES) && defined(NRF_SPI2)
258258
SPIClass SPI (NRF_SPI2, PIN_SPI_MISO, PIN_SPI_SCK, PIN_SPI_MOSI);
259259
#else
260260
SPIClass SPI (NRF_SPI0, PIN_SPI_MISO, PIN_SPI_SCK, PIN_SPI_MOSI);

0 commit comments

Comments
 (0)