diff --git a/RF24.cpp b/RF24.cpp index c0ceef8a..68144a25 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -999,6 +999,7 @@ bool RF24::begin(void) _spi->begin(csn_pin); #elif defined(RF24_RP2) + _spi = new SPI(); _spi->begin(PICO_DEFAULT_SPI ? spi1 : spi0); #else // using an Arduino platform || defined (LITTLEWIRE) diff --git a/utility/rp2/RF24_arch_config.h b/utility/rp2/RF24_arch_config.h index 7d5a1a93..3f24e949 100644 --- a/utility/rp2/RF24_arch_config.h +++ b/utility/rp2/RF24_arch_config.h @@ -28,8 +28,6 @@ #define _SPI SPI #define RF24_SPI_PTR -static SPI spi; - #ifdef SERIAL_DEBUG #define IF_SERIAL_DEBUG(x) ({ x; }) #else