Commit Graph

4 Commits (9c9b48ce39df58bd7c5df43283d3233a432a956a)

Author SHA1 Message Date
storm64 9ab2fcdf31 sched: `getTimeToAlarm` check next dow if t<now
Fix undefined output of `getTimeToAlarm` on an alarm that is already in the past to check for the next dow instead of the actual dow.
>> add +1 to time.getDay() if alarm.t < currentTime
2022-04-08 21:24:24 +02:00
storm64 2c729af68c sched: Fix `getTimeToAlarm` for timers
Only set `last` for alarms to prevent a wrong output of `getTimeToAlarm` for a timer already used at same day.
2022-04-07 19:47:45 +02:00
Gordon Williams 1dd232ffce alarm fixes (fix #1667) 2022-04-07 15:47:01 +01:00
Gordon Williams 5c84ec9e2c Refactored alarm into separate 'sched' library/app 2022-04-04 15:49:45 +01:00