From 0fa5b8abcafd64364e1f22db1256447eb2e85185 Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 16 Oct 2019 23:27:30 +0700 Subject: [PATCH] fix nrf52832 build error need more testing with 832, since it failed with SD.begin() --- libraries/SPI/SPI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/SPI/SPI.cpp b/libraries/SPI/SPI.cpp index 83e2eb6c..ab383c73 100644 --- a/libraries/SPI/SPI.cpp +++ b/libraries/SPI/SPI.cpp @@ -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