]> git.earman.xyz Git - sensor-watch.git/commitdiff
Merge PR #439 - fix scheduled task misses
authorMatheus Moreira <matheus@matheusmoreira.com>
Mon, 26 Aug 2024 12:14:29 +0000 (09:14 -0300)
committerMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Fri, 30 Aug 2024 19:44:38 +0000 (16:44 -0300)
The movement was checking for scheduled tasks
by comparing for equality their scheduled times to
the current time. However, it is possible that the time
has moved past the scheduled time by the time the
function executes, leading to scheduled tasks not
being executed and therefore to missed deadlines.

Changing it to `<=` fixes the problem by taking that
possibility into account.

Helped-by: Wesley Ellis <tahnok@gmail.com>
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/439


Trivial merge