From 068fa45a069138c1231a61efe537d0a16e63dbd6 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sat, 4 Jun 2016 09:30:37 +0200 Subject: [PATCH] [Horus] The backlight becomes ON when the PWR button is pressed --- radio/src/opentx.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index a302d5f4c..70f18356e 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -954,8 +954,9 @@ void checkBacklight() tmr10ms = x; if (inputsMoved()) { inactivity.counter = 0; - if (g_eeGeneral.backlightMode & e_backlight_mode_sticks) + if (g_eeGeneral.backlightMode & e_backlight_mode_sticks) { backlightOn(); + } } bool backlightOn = (g_eeGeneral.backlightMode == e_backlight_mode_on || lightOffCounter || isFunctionActive(FUNCTION_BACKLIGHT)); @@ -2735,6 +2736,10 @@ uint32_t pwrCheck() pwr_press_time = get_tmr10ms(); } else { + inactivity.counter = 0; + if (g_eeGeneral.backlightMode != e_backlight_mode_off) { + BACKLIGHT_ON(); + } if (get_tmr10ms() - pwr_press_time > PWR_PRESS_SHUTDOWN) { #if defined(SHUTDOWN_CONFIRMATION) while (1) {