From 995d7054ef400c407173793c5a1f651f01847554 Mon Sep 17 00:00:00 2001 From: jgromes Date: Tue, 30 Jun 2020 10:41:48 +0200 Subject: [PATCH] [CC1101] Reworked driver exlusion --- src/modules/CC1101/CC1101.cpp | 3 +++ src/modules/CC1101/CC1101.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/CC1101/CC1101.cpp b/src/modules/CC1101/CC1101.cpp index 8074a37b..80b0c7db 100644 --- a/src/modules/CC1101/CC1101.cpp +++ b/src/modules/CC1101/CC1101.cpp @@ -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 diff --git a/src/modules/CC1101/CC1101.h b/src/modules/CC1101/CC1101.h index 0ef0df29..2ba3089e 100644 --- a/src/modules/CC1101/CC1101.h +++ b/src/modules/CC1101/CC1101.h @@ -1,4 +1,4 @@ -#ifndef _RADIOLIB_CC1101_H +#if !defined(_RADIOLIB_CC1101_H) && !defined(RADIOLIB_EXCLUDE_CC1101) #define _RADIOLIB_CC1101_H #include "../../TypeDef.h"