fix nrf52832 build error

need more testing with 832, since it failed with SD.begin()
This commit is contained in:
hathach committed 2019-10-16 23:27:30 +07:00
1 parent f1e9877408
commit 0fa5b8abca
1 file changed
+2
+2
View File
@@ -37,7 +37,9 @@ SPIClass::SPIClass(NRF_SPIM_Type *p_spi, uint8_t uc_pinMISO, uint8_t uc_pinSCK,
} else if ( NRF_SPIM2 == p_spi ) {
_spim.drv_inst_idx = NRFX_SPIM2_INST_IDX;
} else {
#ifdef NRF52840_XXAA
_spim.drv_inst_idx = NRFX_SPIM3_INST_IDX;
#endif
}
// pins