Skip to content

Commit 4d26a6f

Browse files
committed
clean up warnings
1 parent ecd0001 commit 4d26a6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/SPI/SPI.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ SPIClass::SPIClass(NRF_SPIM_Type *p_spi, uint8_t uc_pinMISO, uint8_t uc_pinSCK,
3535

3636
_spim.p_reg = p_spi;
3737

38+
// not used by SPIM module
39+
_p_spi = NULL;
40+
3841
// SPIM0 & SPIM1 are used for I2C
3942
#if NRFX_SPIM0_ENABLED
4043
if ( NRF_SPIM0 == p_spi ) {

0 commit comments

Comments
 (0)