Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
Co-authored-by: Gabor Kiss-Vamosi <[email protected]>
  • Loading branch information
cristian-stoica and kisvegabor authored Oct 16, 2024
1 parent 1fe47a6 commit 50bcbc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ int main(void)

/*Handle LVGL tasks*/
while(1) {
usleep(lv_timer_handler() * 1000);
uint32_t idle_time = lv_timer_handler(); /*Returns the time to the next timer execution*/
usleep(idle_time * 1000);
}

return 0;
Expand Down

0 comments on commit 50bcbc6

Please sign in to comment.