Merge pull request #678 from matthijskooijman/remove-constexpr
[MOD] Remove constexpr usage
This commit is contained in:
commit
526adc7431
4 changed files with 6 additions and 2 deletions
|
@ -8,6 +8,8 @@
|
|||
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),
|
||||
|
|
|
@ -62,7 +62,7 @@ class Module {
|
|||
*
|
||||
* See setRfSwitchTable() for details.
|
||||
*/
|
||||
static constexpr RfSwitchMode_t END_OF_MODE_TABLE = {MODE_END_OF_TABLE, {}};
|
||||
static const RfSwitchMode_t END_OF_MODE_TABLE;
|
||||
|
||||
#if defined(RADIOLIB_BUILD_ARDUINO)
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@ This file is licensed under the MIT License: https://opensource.org/licenses/MIT
|
|||
|
||||
#include <SubGhz.h>
|
||||
|
||||
const Module::RfSwitchMode_t STM32WLx::END_OF_MODE_TABLE = {Module::MODE_END_OF_TABLE, {}};
|
||||
|
||||
STM32WLx::STM32WLx(STM32WLx_Module* mod) : SX1262(mod) {
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ class STM32WLx : public SX1262 {
|
|||
MODE_TX_HP,
|
||||
};
|
||||
/*! \copydoc Module::END_OF_MODE_TABLE */
|
||||
static constexpr auto END_OF_MODE_TABLE = Module::END_OF_MODE_TABLE;
|
||||
static const Module::RfSwitchMode_t END_OF_MODE_TABLE;
|
||||
|
||||
// basic methods
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue