[CC1101] Reworked driver exlusion

This commit is contained in:
jgromes 2020-06-30 10:41:48 +02:00
parent 4ad5261a83
commit 995d7054ef
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#include "CC1101.h"
#if !defined(RADIOLIB_EXCLUDE_CC1101)
CC1101::CC1101(Module* module) : PhysicalLayer(CC1101_FREQUENCY_STEP_SIZE, CC1101_MAX_PACKET_LENGTH) {
_mod = module;
@ -857,3 +858,5 @@ void CC1101::SPIsendCommand(uint8_t cmd) {
SPI.endTransaction();
Module::digitalWrite(_mod->getCs(), HIGH);
}
#endif

View file

@ -1,4 +1,4 @@
#ifndef _RADIOLIB_CC1101_H
#if !defined(_RADIOLIB_CC1101_H) && !defined(RADIOLIB_EXCLUDE_CC1101)
#define _RADIOLIB_CC1101_H
#include "../../TypeDef.h"