From 5d037d3f21f9699e0f9a1f2a0ce752533b3b994d Mon Sep 17 00:00:00 2001 From: MouriNaruto Date: Wed, 16 Oct 2024 11:44:19 +0800 Subject: [PATCH] Use lv_delay_ms instead of Sleep in project demos. --- LvglWindowsDesktopApplication/LvglWindowsDesktopApplication.cpp | 2 +- LvglWindowsSimulator/LvglWindowsSimulator.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LvglWindowsDesktopApplication/LvglWindowsDesktopApplication.cpp b/LvglWindowsDesktopApplication/LvglWindowsDesktopApplication.cpp index 2172e31..bdeca7e 100644 --- a/LvglWindowsDesktopApplication/LvglWindowsDesktopApplication.cpp +++ b/LvglWindowsDesktopApplication/LvglWindowsDesktopApplication.cpp @@ -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; diff --git a/LvglWindowsSimulator/LvglWindowsSimulator.cpp b/LvglWindowsSimulator/LvglWindowsSimulator.cpp index 6a36094..4db7afc 100644 --- a/LvglWindowsSimulator/LvglWindowsSimulator.cpp +++ b/LvglWindowsSimulator/LvglWindowsSimulator.cpp @@ -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;