Skip to content

Commit 0fa5b8a

Browse files
committed
fix nrf52832 build error
need more testing with 832, since it failed with SD.begin()
1 parent f1e9877 commit 0fa5b8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/SPI/SPI.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ SPIClass::SPIClass(NRF_SPIM_Type *p_spi, uint8_t uc_pinMISO, uint8_t uc_pinSCK,
3737
} else if ( NRF_SPIM2 == p_spi ) {
3838
_spim.drv_inst_idx = NRFX_SPIM2_INST_IDX;
3939
} else {
40+
#ifdef NRF52840_XXAA
4041
_spim.drv_inst_idx = NRFX_SPIM3_INST_IDX;
42+
#endif
4143
}
4244

4345
// pins

0 commit comments

Comments
 (0)