[nRF24] Reworked driver exclusion

This commit is contained in:
jgromes 2020-06-30 10:44:41 +02:00
parent 78c1f94233
commit 0e120a760a
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#include "nRF24.h"
#if !defined(RADIOLIB_EXCLUDE_NRF24)
nRF24::nRF24(Module* mod) : PhysicalLayer(NRF24_FREQUENCY_STEP_SIZE, NRF24_MAX_PACKET_LENGTH) {
_mod = mod;
@ -568,3 +569,5 @@ void nRF24::SPItransfer(uint8_t cmd, bool write, uint8_t* dataOut, uint8_t* data
spi->endTransaction();
digitalWrite(_mod->getCs(), HIGH);
}
#endif

View file

@ -1,4 +1,4 @@
#ifndef _RADIOLIB_NRF24_H
#if !defined(_RADIOLIB_NRF24_H) && !defined(RADIOLIB_EXCLUDE_NRF24)
#define _RADIOLIB_NRF24_H
#include "../../Module.h"