From 18644e5a06c13471b554a350d210188ca6eaa603 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Sun, 5 May 2024 05:13:32 +0200 Subject: [PATCH] Fix issue #76 --- app/app.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/app.c b/app/app.c index b571c85..07ea968 100644 --- a/app/app.c +++ b/app/app.c @@ -844,11 +844,13 @@ void APP_Update(void) { if (gBlinkCounter == 0) { - BACKLIGHT_TurnOn(); + //BACKLIGHT_TurnOn(); + BACKLIGHT_SetBrightness(gEeprom.BACKLIGHT_MAX); } else if(gBlinkCounter == 15000) { - BACKLIGHT_TurnOff(); + //BACKLIGHT_TurnOff(); + BACKLIGHT_SetBrightness(gEeprom.BACKLIGHT_MIN); } } } @@ -878,6 +880,12 @@ void APP_Update(void) gTxTimeoutReached = false; #ifdef ENABLE_FEAT_F4HWN + if(gBacklightCountdown_500ms > 0 || gEeprom.BACKLIGHT_TIME == 61) + { + //BACKLIGHT_TurnOn(); + BACKLIGHT_SetBrightness(gEeprom.BACKLIGHT_MAX); + } + gTxTimeoutReachedAlert = false; gTxTimeoutToneAlert = 800;