Clear ongoing taps when going to sleep

This commit is contained in:
mark9064
2024-08-22 16:53:18 +01:00
committed by JF
parent cfaad261dc
commit 1808634f0e
3 changed files with 14 additions and 0 deletions
+4
View File
@@ -313,6 +313,10 @@ void DisplayApp::Refresh() {
while (!lv_task_handler()) {
};
}
// Clear any ongoing touch pressed events
// Without this LVGL gets stuck in the pressed state and will keep refreshing the
// display activity timer causing the screen to never sleep after timeout
lvgl.ClearTouchState();
if (msg == Messages::GoToAOD) {
lcd.LowPowerOn();
// Record idle entry time