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