Skip to content

Commit

Permalink
NRF24
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorcelli committed Dec 3, 2024
1 parent de35468 commit 603710b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/NRF24/nrf_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ bool nrf_start() {
#elif CC1101_MOSI_PIN==SDCARD_MOSI
NRFSPI = &sdcardSPI;
NRFSPI->begin(NRF24_SCK_PIN,NRF24_MISO_PIN,NRF24_MOSI_PIN,NRF24_SS_PIN);
#elif defined(STICK_C_PLUS) || defined(STICK_C_PLUS2)
sdcardSPI.end();
CC_NRF_SPI.end();
NRFSPI = &CC_NRF_SPI;
NRFSPI->begin(NRF24_SCK_PIN,NRF24_MISO_PIN,NRF24_MOSI_PIN,NRF24_SS_PIN);
#else
NRFSPI = &SPI;
NRFSPI->begin(NRF24_SCK_PIN,NRF24_MISO_PIN,NRF24_MOSI_PIN,NRF24_SS_PIN);
Expand Down

0 comments on commit 603710b

Please sign in to comment.