fixes overload
This commit is contained in:
parent
cbf54691dc
commit
d9c403c8c4
2 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue