Skip to content

Commit

Permalink
fix(slv): use 10ms sleep as it's more reliable than 1ms
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreCostaaa committed Feb 24, 2025
1 parent 66a22f7 commit cbf232e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usr/lib/slv/slv.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ static void *slv_tick(void *args)
{
slv_t *slv = (slv_t *)args;
while (!slv->terminate) {
/* Tell LVGL that 1 millisecond were elapsed */
usleep(1000);
lv_tick_inc(1);
/* Tell LVGL that 10 milliseconds were elapsed */
usleep(10000);
lv_tick_inc(10);
}
return NULL;
}

0 comments on commit cbf232e

Please sign in to comment.