diff --git a/src/modules/SX126x/SX126x.cpp b/src/modules/SX126x/SX126x.cpp index aca4f15b..00a305c5 100644 --- a/src/modules/SX126x/SX126x.cpp +++ b/src/modules/SX126x/SX126x.cpp @@ -442,6 +442,11 @@ int16_t SX126x::scanChannel(uint8_t symbolNum, uint8_t detPeak, uint8_t detMin) return(getChannelScanResult()); } + +int16_t SX126x::sleep() { + return(SX126x::sleep(true)); +} + int16_t SX126x::sleep(bool retainConfig) { // set RF switch (if present) this->mod->setRfSwitchState(Module::MODE_IDLE); diff --git a/src/modules/SX126x/SX126x.h b/src/modules/SX126x/SX126x.h index 2bd3a042..91cee5b6 100644 --- a/src/modules/SX126x/SX126x.h +++ b/src/modules/SX126x/SX126x.h @@ -552,7 +552,11 @@ class SX126x: public PhysicalLayer { or to false to discard current configuration ("cold start"). Defaults to true. \returns \ref status_codes */ - int16_t sleep(bool retainConfig = true); + + + int16_t sleep(); + + int16_t sleep(bool retainConfig); /*! \brief Sets the module to standby mode (overload for PhysicalLayer compatibility, uses 13 MHz RC oscillator). diff --git a/src/modules/SX128x/SX128x.cpp b/src/modules/SX128x/SX128x.cpp index 0a5333f2..0cd83b5a 100644 --- a/src/modules/SX128x/SX128x.cpp +++ b/src/modules/SX128x/SX128x.cpp @@ -424,6 +424,10 @@ int16_t SX128x::scanChannel() { return(getChannelScanResult()); } +int16_t SX128x::sleep() { + return(SX128x::sleep(true)); +} + int16_t SX128x::sleep(bool retainConfig) { // set RF switch (if present) this->mod->setRfSwitchState(Module::MODE_IDLE); diff --git a/src/modules/SX128x/SX128x.h b/src/modules/SX128x/SX128x.h index a68f6c5b..68a6954e 100644 --- a/src/modules/SX128x/SX128x.h +++ b/src/modules/SX128x/SX128x.h @@ -463,7 +463,10 @@ class SX128x: public PhysicalLayer { to discard current configuration and data buffer. Defaults to true. \returns \ref status_codes */ - int16_t sleep(bool retainConfig = true); + + int16_t sleep(); + + int16_t sleep(bool retainConfig); /*! \brief Sets the module to standby mode (overload for PhysicalLayer compatibility, uses 13 MHz RC oscillator).