mirror of https://github.com/arendst/Tasmota.git
Merge pull request #7298 from stefanbode/patch-7
Allow deepsleep to wait for second TELEPERIOD intervall
This commit is contained in:
commit
b90a462e0c
|
@ -192,7 +192,7 @@ bool Xdrv29(uint8_t function)
|
|||
DeepSleepEverySecond();
|
||||
break;
|
||||
case FUNC_AFTER_TELEPERIOD:
|
||||
if (DeepSleepEnabled() && !deepsleep_flag) {
|
||||
if (DeepSleepEnabled() && !deepsleep_flag && (Settings.tele_period == 10 || Settings.tele_period == 300 || UpTime() > Settings.tele_period)) {
|
||||
deepsleep_flag = DEEPSLEEP_START_COUNTDOWN; // Start deepsleep in 4 seconds
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue