fixes overload

This commit is contained in:
Dominic 2024-05-06 14:00:43 +01:00
parent 3b62c88a2e
commit cbf54691dc
4 changed files with 18 additions and 2 deletions

View file

@ -442,6 +442,11 @@ int16_t SX126x::scanChannel(uint8_t symbolNum, uint8_t detPeak, uint8_t detMin)
return(getChannelScanResult()); return(getChannelScanResult());
} }
int16_t SX126x::sleep() {
return(SX126x::sleep(true));
}
int16_t SX126x::sleep(bool retainConfig) { int16_t SX126x::sleep(bool retainConfig) {
// set RF switch (if present) // set RF switch (if present)
this->mod->setRfSwitchState(Module::MODE_IDLE); this->mod->setRfSwitchState(Module::MODE_IDLE);

View file

@ -552,7 +552,11 @@ class SX126x: public PhysicalLayer {
or to false to discard current configuration ("cold start"). Defaults to true. or to false to discard current configuration ("cold start"). Defaults to true.
\returns \ref status_codes \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). \brief Sets the module to standby mode (overload for PhysicalLayer compatibility, uses 13 MHz RC oscillator).

View file

@ -424,6 +424,10 @@ int16_t SX128x::scanChannel() {
return(getChannelScanResult()); return(getChannelScanResult());
} }
int16_t SX128x::sleep() {
return(SX128x::sleep(true));
}
int16_t SX128x::sleep(bool retainConfig) { int16_t SX128x::sleep(bool retainConfig) {
// set RF switch (if present) // set RF switch (if present)
this->mod->setRfSwitchState(Module::MODE_IDLE); this->mod->setRfSwitchState(Module::MODE_IDLE);

View file

@ -463,7 +463,10 @@ class SX128x: public PhysicalLayer {
to discard current configuration and data buffer. Defaults to true. to discard current configuration and data buffer. Defaults to true.
\returns \ref status_codes \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). \brief Sets the module to standby mode (overload for PhysicalLayer compatibility, uses 13 MHz RC oscillator).