mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
Merge pull request #3638 from ascillato/patch-1
Add command TIMERS 2 to toggle global timers enable flag
This commit is contained in:
commit
1fad13dc91
@ -455,6 +455,9 @@ boolean TimerCommand()
|
||||
if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload <= 1)) {
|
||||
Settings.flag3.timers_enable = XdrvMailbox.payload;
|
||||
}
|
||||
if (XdrvMailbox.payload == 2) {
|
||||
Settings.flag3.timers_enable = !Settings.flag3.timers_enable;
|
||||
}
|
||||
}
|
||||
|
||||
snprintf_P(mqtt_data, sizeof(mqtt_data), S_JSON_COMMAND_SVALUE, command, GetStateText(Settings.flag3.timers_enable));
|
||||
@ -752,4 +755,4 @@ boolean Xdrv09(byte function)
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif // USE_TIMERS
|
||||
#endif // USE_TIMERS
|
||||
|
Loading…
x
Reference in New Issue
Block a user