diff --git a/src/modules/SX127x/SX1272.cpp b/src/modules/SX127x/SX1272.cpp index 45bf8802..ae900a2a 100644 --- a/src/modules/SX127x/SX1272.cpp +++ b/src/modules/SX127x/SX1272.cpp @@ -1,6 +1,6 @@ #include "SX1272.h" #include -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X SX1272::SX1272(Module* mod) : SX127x(mod) { diff --git a/src/modules/SX127x/SX1272.h b/src/modules/SX127x/SX1272.h index f389230b..974fa16b 100644 --- a/src/modules/SX127x/SX1272.h +++ b/src/modules/SX127x/SX1272.h @@ -3,7 +3,7 @@ #include "../../TypeDef.h" -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X #include "../../Module.h" #include "SX127x.h" @@ -271,7 +271,7 @@ class SX1272: public SX127x { */ int16_t explicitHeader(); -#if !defined(RADIOLIB_GODMODE) +#if !RADIOLIB_GODMODE protected: #endif int16_t setBandwidthRaw(uint8_t newBandwidth); @@ -282,7 +282,7 @@ class SX1272: public SX127x { int16_t configFSK(); void errataFix(bool rx); -#if !defined(RADIOLIB_GODMODE) +#if !RADIOLIB_GODMODE private: #endif bool ldroAuto = true; diff --git a/src/modules/SX127x/SX1273.cpp b/src/modules/SX127x/SX1273.cpp index ea021c66..c3ae5eda 100644 --- a/src/modules/SX127x/SX1273.cpp +++ b/src/modules/SX127x/SX1273.cpp @@ -1,5 +1,5 @@ #include "SX1273.h" -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X SX1273::SX1273(Module* mod) : SX1272(mod) { diff --git a/src/modules/SX127x/SX1273.h b/src/modules/SX127x/SX1273.h index 2ceb58bc..12bd05df 100644 --- a/src/modules/SX127x/SX1273.h +++ b/src/modules/SX127x/SX1273.h @@ -3,7 +3,7 @@ #include "../../TypeDef.h" -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X #include "SX1272.h" @@ -56,7 +56,7 @@ class SX1273: public SX1272 { */ int16_t setDataRate(DataRate_t dr) override; -#if !defined(RADIOLIB_GODMODE) +#if !RADIOLIB_GODMODE private: #endif diff --git a/src/modules/SX127x/SX1276.cpp b/src/modules/SX127x/SX1276.cpp index b20fd7d1..d45826fc 100644 --- a/src/modules/SX127x/SX1276.cpp +++ b/src/modules/SX127x/SX1276.cpp @@ -1,5 +1,5 @@ #include "SX1276.h" -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X SX1276::SX1276(Module* mod) : SX1278(mod) { diff --git a/src/modules/SX127x/SX1276.h b/src/modules/SX127x/SX1276.h index aaf2cc4b..dd9907d5 100644 --- a/src/modules/SX127x/SX1276.h +++ b/src/modules/SX127x/SX1276.h @@ -3,7 +3,7 @@ #include "../../TypeDef.h" -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X #include "SX1278.h" @@ -63,7 +63,7 @@ class SX1276: public SX1278 { */ int16_t setFrequency(float freq); -#if !defined(RADIOLIB_GODMODE) +#if !RADIOLIB_GODMODE private: #endif diff --git a/src/modules/SX127x/SX1277.cpp b/src/modules/SX127x/SX1277.cpp index 5875bd9f..76bbb0f6 100644 --- a/src/modules/SX127x/SX1277.cpp +++ b/src/modules/SX127x/SX1277.cpp @@ -1,5 +1,5 @@ #include "SX1277.h" -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X SX1277::SX1277(Module* mod) : SX1278(mod) { diff --git a/src/modules/SX127x/SX1277.h b/src/modules/SX127x/SX1277.h index 15804d61..0289021f 100644 --- a/src/modules/SX127x/SX1277.h +++ b/src/modules/SX127x/SX1277.h @@ -3,7 +3,7 @@ #include "../../TypeDef.h" -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X #include "SX1278.h" @@ -77,7 +77,7 @@ class SX1277: public SX1278 { */ int16_t setDataRate(DataRate_t dr) override; -#if !defined(RADIOLIB_GODMODE) +#if !RADIOLIB_GODMODE private: #endif diff --git a/src/modules/SX127x/SX1278.cpp b/src/modules/SX127x/SX1278.cpp index 90325ff0..57c9f6f9 100644 --- a/src/modules/SX127x/SX1278.cpp +++ b/src/modules/SX127x/SX1278.cpp @@ -1,6 +1,6 @@ #include "SX1278.h" #include -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X SX1278::SX1278(Module* mod) : SX127x(mod) { diff --git a/src/modules/SX127x/SX1278.h b/src/modules/SX127x/SX1278.h index c9f966a2..685f08ee 100644 --- a/src/modules/SX127x/SX1278.h +++ b/src/modules/SX127x/SX1278.h @@ -3,7 +3,7 @@ #include "../../TypeDef.h" -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X #include "../../Module.h" #include "SX127x.h" @@ -282,7 +282,7 @@ class SX1278: public SX127x { */ int16_t explicitHeader(); -#if !defined(RADIOLIB_GODMODE) +#if !RADIOLIB_GODMODE protected: #endif int16_t setBandwidthRaw(uint8_t newBandwidth); @@ -293,7 +293,7 @@ class SX1278: public SX127x { int16_t configFSK(); void errataFix(bool rx); -#if !defined(RADIOLIB_GODMODE) +#if !RADIOLIB_GODMODE private: #endif bool ldroAuto = true; diff --git a/src/modules/SX127x/SX1279.cpp b/src/modules/SX127x/SX1279.cpp index 4fdd4daa..9f9ac037 100644 --- a/src/modules/SX127x/SX1279.cpp +++ b/src/modules/SX127x/SX1279.cpp @@ -1,5 +1,5 @@ #include "SX1279.h" -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X SX1279::SX1279(Module* mod) : SX1278(mod) { diff --git a/src/modules/SX127x/SX1279.h b/src/modules/SX127x/SX1279.h index 1b01368f..e802e9c4 100644 --- a/src/modules/SX127x/SX1279.h +++ b/src/modules/SX127x/SX1279.h @@ -3,7 +3,7 @@ #include "../../TypeDef.h" -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X #include "SX1278.h" @@ -63,7 +63,7 @@ class SX1279: public SX1278 { */ int16_t setFrequency(float freq); -#if !defined(RADIOLIB_GODMODE) +#if !RADIOLIB_GODMODE private: #endif diff --git a/src/modules/SX127x/SX127x.cpp b/src/modules/SX127x/SX127x.cpp index fe953f33..a3ca76c8 100644 --- a/src/modules/SX127x/SX127x.cpp +++ b/src/modules/SX127x/SX127x.cpp @@ -1,6 +1,6 @@ #include "SX127x.h" #include -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X SX127x::SX127x(Module* mod) : PhysicalLayer(RADIOLIB_SX127X_FREQUENCY_STEP_SIZE, RADIOLIB_SX127X_MAX_PACKET_LENGTH) { this->mod = mod; @@ -1628,7 +1628,7 @@ int16_t SX127x::invertIQ(bool enable) { return(state); } -#if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE) +#if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE void SX127x::setDirectAction(void (*func)(void)) { setDio1Action(func, this->mod->hal->GpioInterruptRising); } diff --git a/src/modules/SX127x/SX127x.h b/src/modules/SX127x/SX127x.h index fa4ab65b..721c5d48 100644 --- a/src/modules/SX127x/SX127x.h +++ b/src/modules/SX127x/SX127x.h @@ -3,7 +3,7 @@ #include "../../TypeDef.h" -#if !defined(RADIOLIB_EXCLUDE_SX127X) +#if !RADIOLIB_EXCLUDE_SX127X #include "../../Module.h" @@ -1150,7 +1150,7 @@ class SX127x: public PhysicalLayer { */ int16_t invertIQ(bool enable) override; - #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE) + #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE /*! \brief Set interrupt service routine function to call when data bit is received in direct mode. \param func Pointer to interrupt service routine. @@ -1218,12 +1218,12 @@ class SX127x: public PhysicalLayer { */ int16_t setRSSIThreshold(float dbm); -#if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL) +#if !RADIOLIB_GODMODE && !RADIOLIB_LOW_LEVEL protected: #endif Module* mod; -#if !defined(RADIOLIB_GODMODE) +#if !RADIOLIB_GODMODE protected: #endif @@ -1245,7 +1245,7 @@ class SX127x: public PhysicalLayer { int16_t directMode(); int16_t setPacketMode(uint8_t mode, uint8_t len); -#if !defined(RADIOLIB_GODMODE) +#if !RADIOLIB_GODMODE private: #endif float dataRate = 0;