main: fix segfault because of lv_task_handler() concurrently called
Both InfiniSim/main.cpp and SystemTask.cpp periodically called `lv_task_handler()`. This introduces a race condition, which leads to a segmentation fault in either the main or the SystemTasks call of `lv_task_handler()`. Now `main` only calls the `lv_task_handler()` if the `SystemTask` does not (while the screen is turned off). We need this for the Simulator, otherwise the "Screen is OFF" message won't appear, and the right mouse button won't be recognized to wake up the simulated screen. Fixes: https://github.com/InfiniTimeOrg/InfiniSim/issues/3main
parent
db3144c4f9
commit
1b797211f1
Loading…
Reference in New Issue