sched clkinfo: reset a timer when triggering

pull/3579/head
Rob Pilling 2024-10-03 21:07:39 +01:00
parent 5fc1f5cd13
commit 46321d91b7
1 changed files with 1 additions and 0 deletions

View File

@ -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