mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +00:00
scripter compile error fix (#20140)
compile error if rules are disabled fixed
This commit is contained in:
parent
8ee071b8b8
commit
45ba50bb2f
@ -52,9 +52,11 @@ uint8_t deepsleep_flag = 0;
|
||||
|
||||
bool DeepSleepEnabled(void)
|
||||
{
|
||||
#if defined(USE_RULES) && defined(USE_TIMERS)
|
||||
if (GetRule(0) == "Wakeup" && bitRead(Settings->rule_enabled | Settings->rule_once, 0)) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
if ((Settings->deepsleep < 10) || (Settings->deepsleep > DEEPSLEEP_MAX)) {
|
||||
Settings->deepsleep = 0; // Issue #6961
|
||||
return false; // Disabled
|
||||
|
Loading…
x
Reference in New Issue
Block a user