From d37a587c5c6b8b8b8fc502ca8deb630f4f7a7873 Mon Sep 17 00:00:00 2001 From: MatthewColvin Date: Sat, 16 Sep 2023 12:36:33 -0500 Subject: [PATCH] move task handler to UI class out of main --- Platformio/OmoteUI/OmoteUI.cpp | 1 + Platformio/src/simMain.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Platformio/OmoteUI/OmoteUI.cpp b/Platformio/OmoteUI/OmoteUI.cpp index 360dc71..fdf5433 100644 --- a/Platformio/OmoteUI/OmoteUI.cpp +++ b/Platformio/OmoteUI/OmoteUI.cpp @@ -91,6 +91,7 @@ void OmoteUI::virtualKeypad_event_cb(lv_event_t *e) { void OmoteUI::loopHandler(){ lv_timer_handler(); + lv_task_handler(); } void OmoteUI::create_status_bar(){ diff --git a/Platformio/src/simMain.cpp b/Platformio/src/simMain.cpp index ca082c4..3fa4c78 100644 --- a/Platformio/src/simMain.cpp +++ b/Platformio/src/simMain.cpp @@ -12,6 +12,5 @@ int main(){ while (true){ ui->loopHandler(); - lv_task_handler(); } } \ No newline at end of file