fixes overload

This commit is contained in:
Dominic 2024-05-06 14:13:33 +01:00
parent cbf54691dc
commit d9c403c8c4
2 changed files with 8 additions and 1 deletions

View file

@ -312,6 +312,10 @@ int16_t LR11x0::standby(uint8_t mode, bool wakeup) {
return(this->SPIcommand(RADIOLIB_LR11X0_CMD_SET_STANDBY, true, buff, 1));
}
int16_t LR11x0::sleep() {
return(LR11x0::sleep(true, 0));
}
int16_t LR11x0::sleep(bool retainConfig, uint32_t sleepTime) {
// set RF switch (if present)
this->mod->setRfSwitchState(Module::MODE_IDLE);

View file

@ -774,7 +774,10 @@ class LR11x0: public PhysicalLayer {
\param sleepTime Sleep duration (enables automatic wakeup), in multiples of 30.52 us. Ignored if set to 0.
\returns \ref status_codes
*/
int16_t sleep(bool retainConfig = true, uint32_t sleepTime = 0);
int16_t sleep();
int16_t sleep(bool retainConfig, uint32_t sleepTime);
// interrupt methods