From 379c475d5e9eda4e82198c35bf252052476058af Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 27 Nov 2023 21:15:21 +0100 Subject: [PATCH] [SX1231] Reworked macro configuration system --- src/modules/SX1231/SX1231.cpp | 2 +- src/modules/SX1231/SX1231.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/SX1231/SX1231.cpp b/src/modules/SX1231/SX1231.cpp index cc9e3409..7cce2cce 100644 --- a/src/modules/SX1231/SX1231.cpp +++ b/src/modules/SX1231/SX1231.cpp @@ -1,5 +1,5 @@ #include "SX1231.h" -#if !defined(RADIOLIB_EXCLUDE_SX1231) +#if !RADIOLIB_EXCLUDE_SX1231 SX1231::SX1231(Module* mod) : RF69(mod) { diff --git a/src/modules/SX1231/SX1231.h b/src/modules/SX1231/SX1231.h index 60540345..e9631a87 100644 --- a/src/modules/SX1231/SX1231.h +++ b/src/modules/SX1231/SX1231.h @@ -3,7 +3,7 @@ #include "../../TypeDef.h" -#if !defined(RADIOLIB_EXCLUDE_SX1231) +#if !RADIOLIB_EXCLUDE_SX1231 #include "../../Module.h" #include "../RF69/RF69.h" @@ -110,7 +110,7 @@ class SX1231: public RF69 { */ int16_t begin(float freq = 434.0, float br = 4.8, float freqDev = 5.0, float rxBw = 125.0, int8_t power = 10, uint8_t preambleLen = 16); -#if !defined(RADIOLIB_GODMODE) +#if !RADIOLIB_GODMODE private: #endif uint8_t chipRevision = 0;