From 4d26a6f0199a1db541d650c8179ea35b55c56776 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 18 Oct 2019 00:02:56 +0700 Subject: [PATCH] clean up warnings --- libraries/SPI/SPI.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/SPI/SPI.cpp b/libraries/SPI/SPI.cpp index 3423520b..7b15d492 100644 --- a/libraries/SPI/SPI.cpp +++ b/libraries/SPI/SPI.cpp @@ -35,6 +35,9 @@ SPIClass::SPIClass(NRF_SPIM_Type *p_spi, uint8_t uc_pinMISO, uint8_t uc_pinSCK, _spim.p_reg = p_spi; + // not used by SPIM module + _p_spi = NULL; + // SPIM0 & SPIM1 are used for I2C #if NRFX_SPIM0_ENABLED if ( NRF_SPIM0 == p_spi ) {