diff --git a/src/modules/SX127x/SX1272.h b/src/modules/SX127x/SX1272.h index a74e91bc..b22c13a3 100644 --- a/src/modules/SX127x/SX1272.h +++ b/src/modules/SX127x/SX1272.h @@ -287,7 +287,7 @@ class SX1272: public SX127x { */ int16_t explicitHeader(); -#ifndef RADIOLIB_GODMODE +#if !defined(RADIOLIB_GODMODE) protected: #endif int16_t setBandwidthRaw(uint8_t newBandwidth); @@ -297,7 +297,7 @@ class SX1272: public SX127x { int16_t configFSK(); -#ifndef RADIOLIB_GODMODE +#if !defined(RADIOLIB_GODMODE) private: #endif bool _ldroAuto = true; diff --git a/src/modules/SX127x/SX1273.h b/src/modules/SX127x/SX1273.h index 83b43dd4..6711a84d 100644 --- a/src/modules/SX127x/SX1273.h +++ b/src/modules/SX127x/SX1273.h @@ -62,7 +62,7 @@ class SX1273: public SX1272 { */ int16_t setSpreadingFactor(uint8_t sf); -#ifndef RADIOLIB_GODMODE +#if !defined(RADIOLIB_GODMODE) private: #endif diff --git a/src/modules/SX127x/SX1276.h b/src/modules/SX127x/SX1276.h index 8c234a87..97760dc6 100644 --- a/src/modules/SX127x/SX1276.h +++ b/src/modules/SX127x/SX1276.h @@ -84,7 +84,7 @@ class SX1276: public SX1278 { */ int16_t setFrequency(float freq); -#ifndef RADIOLIB_GODMODE +#if !defined(RADIOLIB_GODMODE) private: #endif diff --git a/src/modules/SX127x/SX1277.h b/src/modules/SX127x/SX1277.h index e0ea539e..4b80b63f 100644 --- a/src/modules/SX127x/SX1277.h +++ b/src/modules/SX127x/SX1277.h @@ -93,7 +93,7 @@ class SX1277: public SX1278 { */ int16_t setSpreadingFactor(uint8_t sf); -#ifndef RADIOLIB_GODMODE +#if !defined(RADIOLIB_GODMODE) private: #endif diff --git a/src/modules/SX127x/SX1278.h b/src/modules/SX127x/SX1278.h index 438a9c18..d65f4164 100644 --- a/src/modules/SX127x/SX1278.h +++ b/src/modules/SX127x/SX1278.h @@ -295,7 +295,7 @@ class SX1278: public SX127x { */ int16_t explicitHeader(); -#ifndef RADIOLIB_GODMODE +#if !defined(RADIOLIB_GODMODE) protected: #endif int16_t setBandwidthRaw(uint8_t newBandwidth); @@ -305,7 +305,7 @@ class SX1278: public SX127x { int16_t configFSK(); -#ifndef RADIOLIB_GODMODE +#if !defined(RADIOLIB_GODMODE) private: #endif bool _ldroAuto = true; diff --git a/src/modules/SX127x/SX1279.h b/src/modules/SX127x/SX1279.h index ef6f29e3..3a8336d6 100644 --- a/src/modules/SX127x/SX1279.h +++ b/src/modules/SX127x/SX1279.h @@ -84,7 +84,7 @@ class SX1279: public SX1278 { */ int16_t setFrequency(float freq); -#ifndef RADIOLIB_GODMODE +#if !defined(RADIOLIB_GODMODE) private: #endif diff --git a/src/modules/SX127x/SX127x.h b/src/modules/SX127x/SX127x.h index 96692fa4..90425b79 100644 --- a/src/modules/SX127x/SX127x.h +++ b/src/modules/SX127x/SX127x.h @@ -124,9 +124,9 @@ #define SX127X_DETECT_OPTIMIZE_SF_7_12 0b00000011 // 2 0 SF7 to SF12 detection optimization // SX127X_REG_INVERT_IQ -#define SX127X_INVERT_IQ_RXPATH_ON 0b01000000 // 6 6 I and Q signals are inverted +#define SX127X_INVERT_IQ_RXPATH_ON 0b01000000 // 6 6 I and Q signals are inverted #define SX127X_INVERT_IQ_RXPATH_OFF 0b00000000 // 6 6 normal mode -#define SX127X_INVERT_IQ_TXPATH_ON 0b00000001 // 0 0 I and Q signals are inverted +#define SX127X_INVERT_IQ_TXPATH_ON 0b00000001 // 0 0 I and Q signals are inverted #define SX127X_INVERT_IQ_TXPATH_OFF 0b00000000 // 0 0 normal mode // SX127X_REG_DETECTION_THRESHOLD @@ -965,11 +965,15 @@ class SX127x: public PhysicalLayer { */ int16_t invertIQ(bool invertIQ); -#ifndef RADIOLIB_GODMODE +#if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL) protected: #endif Module* _mod; +#if !defined(RADIOLIB_GODMODE) + protected: +#endif + float _freq = 0; float _bw = 0; uint8_t _sf = 0; @@ -987,7 +991,7 @@ class SX127x: public PhysicalLayer { int16_t directMode(); int16_t setPacketMode(uint8_t mode, uint8_t len); -#ifndef RADIOLIB_GODMODE +#if !defined(RADIOLIB_GODMODE) private: #endif float _dataRate = 0;