From 5fc1f5cd13805f6f180c6e7f9bdf748cf62012ab Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Thu, 3 Oct 2024 21:07:08 +0100 Subject: [PATCH] sched clkinfo: revert to toggling `alarm.on` --- apps/sched/clkinfo.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/sched/clkinfo.js b/apps/sched/clkinfo.js index 8a5576181..3700ee1e5 100644 --- a/apps/sched/clkinfo.js +++ b/apps/sched/clkinfo.js @@ -127,12 +127,8 @@ run: function() { if (a.date) return; // ignore events a.on = !a.on; - if (a.on) { - // use sched to start the alarm, - // so it takes care of timers etc - alarm.setAlarm(a.id, a); - } this.emit("redraw"); + alarm.setAlarms(all); alarm.reload(); // schedule/unschedule the alarm } })),