Skip to content

Commit

Permalink
Use lv_delay_ms instead of Sleep in project demos.
Browse files Browse the repository at this point in the history
  • Loading branch information
MouriNaruto committed Oct 16, 2024
1 parent 15ea92a commit 5d037d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ int WINAPI wWinMain(
while (1)
{
uint32_t time_till_next = ::lv_timer_handler();
::Sleep(time_till_next);
::lv_delay_ms(time_till_next);
}

return 0;
Expand Down
2 changes: 1 addition & 1 deletion LvglWindowsSimulator/LvglWindowsSimulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ int main()
while (1)
{
uint32_t time_till_next = lv_timer_handler();
Sleep(time_till_next);
lv_delay_ms(time_till_next);
}

return 0;
Expand Down

0 comments on commit 5d037d3

Please sign in to comment.