Skip to content

Commit

Permalink
Revert "fix issue with utilTimerOffset drift"
Browse files Browse the repository at this point in the history
This reverts commit dc474d8cbd896e7af3d78dea7bcc3639b3252520.
  • Loading branch information
gfwilliams committed Nov 8, 2024
1 parent 781ef81 commit 6b565f8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/jstimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ bool utilTimerInsertTask(UtilTimerTask *task, uint32_t *timerOffset) {

// How long was it since the timer was last scheduled? Update existing tasks #2575
uint32_t timePassed = jshGetSystemTime() - utilTimerSetTime;
utilTimerOffset += timePassed;
// find out where to insert
unsigned char insertPos = utilTimerTasksTail;
while (insertPos != utilTimerTasksHead && utilTimerTasks[insertPos].time < (task->time+timePassed))
Expand Down

0 comments on commit 6b565f8

Please sign in to comment.