mirror of https://github.com/arendst/Tasmota.git
Add option 0 to command Timers
6.0.0a * Add option 0 to command Timers disarming all timers (#2962)
This commit is contained in:
parent
862623b295
commit
6a9a996e98
|
@ -1,4 +1,5 @@
|
|||
/* 6.0.0a
|
||||
* Add option 0 to command Timers disarming all timers (#2962)
|
||||
* Add time in minutes to rule Time#Initialized, Time#set and Time#Minute (#2669)
|
||||
* Add rule variables %time% for minutes since midnight, %uptime%, %sunrise% and %sunset% giving time in minutes (#2669)
|
||||
* Add heap and stack debug information
|
||||
|
|
|
@ -451,6 +451,11 @@ boolean TimerCommand()
|
|||
}
|
||||
}
|
||||
else if (CMND_TIMERS == command_code) {
|
||||
if (XdrvMailbox.data_len && (XdrvMailbox.payload == 0)) {
|
||||
for (byte i = 0; i < MAX_TIMERS; i++) {
|
||||
Settings.timer[i].arm = 0; // Disable all timers
|
||||
}
|
||||
}
|
||||
byte jsflg = 0;
|
||||
byte lines = 1;
|
||||
for (byte i = 0; i < MAX_TIMERS; i++) {
|
||||
|
|
Loading…
Reference in New Issue