Skip to content

Commit

Permalink
resolves #899
Browse files Browse the repository at this point in the history
a regression from #892 about
using the default instance of the SPI wrapping class for PicoSDK
  • Loading branch information
2bndy5 committed Mar 3, 2023
1 parent da89874 commit 557d165
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions RF24.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions utility/rp2/RF24_arch_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#define _SPI SPI
#define RF24_SPI_PTR

static SPI spi;

#ifdef SERIAL_DEBUG
#define IF_SERIAL_DEBUG(x) ({ x; })
#else
Expand Down

0 comments on commit 557d165

Please sign in to comment.