From 06585a0736d40539e86233c693c75f8014ab6e65 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 31 Mar 2022 03:46:32 +0200 Subject: [PATCH] feat: Reset inactivity alarm timer for touch events (#1774) --- radio/src/opentx.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 987dad94c..f7abf246d 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -537,8 +537,11 @@ void checkBacklight() } #if defined(HARDWARE_TOUCH) - if (MainWindow::instance()->touchEventOccured() && (g_eeGeneral.backlightMode & e_backlight_mode_keys)) { - resetBacklightTimeout(); + if (MainWindow::instance()->touchEventOccured()) { + inactivity.counter = 0; + if (g_eeGeneral.backlightMode & e_backlight_mode_keys) { + resetBacklightTimeout(); + } } #endif