diff --git a/src/Module.cpp b/src/Module.cpp index c5deec40..7df4d0db 100644 --- a/src/Module.cpp +++ b/src/Module.cpp @@ -8,8 +8,6 @@ mbed::PwmOut *pwmPin = NULL; #endif -const Module::RfSwitchMode_t Module::END_OF_MODE_TABLE = {Module::MODE_END_OF_TABLE, {}}; - Module::Module(RADIOLIB_PIN_TYPE cs, RADIOLIB_PIN_TYPE irq, RADIOLIB_PIN_TYPE rst, RADIOLIB_PIN_TYPE gpio): _cs(cs), _irq(irq), diff --git a/src/Module.h b/src/Module.h index 89006acd..ac69b02e 100644 --- a/src/Module.h +++ b/src/Module.h @@ -7,6 +7,14 @@ #include #endif +/*! +* Value to use as the last element in a mode table to indicate the +* end of the table. +* +* See setRfSwitchTable() for details. +*/ +#define END_OF_MODE_TABLE { Module::MODE_END_OF_TABLE, {} } + /*! \class Module @@ -56,14 +64,6 @@ class Module { MODE_TX, }; - /*! - * Value to use as the last element in a mode table to indicate the - * end of the table. - * - * See setRfSwitchTable() for details. - */ - static const RfSwitchMode_t END_OF_MODE_TABLE; - #if defined(RADIOLIB_BUILD_ARDUINO) /*! diff --git a/src/modules/SX126x/STM32WLx.cpp b/src/modules/SX126x/STM32WLx.cpp index 6897dfc1..744f88c3 100644 --- a/src/modules/SX126x/STM32WLx.cpp +++ b/src/modules/SX126x/STM32WLx.cpp @@ -11,8 +11,6 @@ This file is licensed under the MIT License: https://opensource.org/licenses/MIT #include -const Module::RfSwitchMode_t STM32WLx::END_OF_MODE_TABLE = {Module::MODE_END_OF_TABLE, {}}; - STM32WLx::STM32WLx(STM32WLx_Module* mod) : SX1262(mod) { } diff --git a/src/modules/SX126x/STM32WLx.h b/src/modules/SX126x/STM32WLx.h index ad7faffb..0618dd43 100644 --- a/src/modules/SX126x/STM32WLx.h +++ b/src/modules/SX126x/STM32WLx.h @@ -62,8 +62,6 @@ class STM32WLx : public SX1262 { /*! High power transmission mode */ MODE_TX_HP, }; - /*! \copydoc Module::END_OF_MODE_TABLE */ - static const Module::RfSwitchMode_t END_OF_MODE_TABLE; // basic methods