sched clkinfo: reset a timer when triggering
parent
5fc1f5cd13
commit
46321d91b7
|
|
@ -127,6 +127,7 @@
|
||||||
run: function() {
|
run: function() {
|
||||||
if (a.date) return; // ignore events
|
if (a.date) return; // ignore events
|
||||||
a.on = !a.on;
|
a.on = !a.on;
|
||||||
|
if(a.on && a.timer) alarm.resetTimer(a);
|
||||||
this.emit("redraw");
|
this.emit("redraw");
|
||||||
alarm.setAlarms(all);
|
alarm.setAlarms(all);
|
||||||
alarm.reload(); // schedule/unschedule the alarm
|
alarm.reload(); // schedule/unschedule the alarm
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue