From 34acff0fbf964122143a7939a5c074e0c61c16a0 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Tue, 12 May 2026 18:34:10 +0200 Subject: [PATCH] Throttle SetTmr status refresh --- App/app/app.c | 11 +++++++++++ App/ui/status.c | 2 -- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/App/app/app.c b/App/app/app.c index 3847f1ea..ce349046 100644 --- a/App/app/app.c +++ b/App/app/app.c @@ -1703,6 +1703,17 @@ void APP_TimeSlice500ms(void) if (--gKeypadLocked == 0) gUpdateDisplay = true; +#ifdef ENABLE_FEAT_F4HWN_RX_TX_TIMER + if (gSetting_set_tmr && (gCurrentFunction == FUNCTION_TRANSMIT || FUNCTION_IsRx())) { + const uint16_t timerCountdown = (gCurrentFunction == FUNCTION_TRANSMIT) + ? gTxTimerCountdown_500ms + : gRxTimerCountdown_500ms; + + if ((timerCountdown & 1u) != 0u) + gUpdateStatus = true; + } +#endif + if (gKeyInputCountdown > 0) { if (--gKeyInputCountdown == 0) diff --git a/App/ui/status.c b/App/ui/status.c index 7e9d8f28..c7d8d5ac 100644 --- a/App/ui/status.c +++ b/App/ui/status.c @@ -49,8 +49,6 @@ static void convertTime(uint8_t *line, uint8_t type) char str[6]; sprintf(str, "%02u:%02u", m, s); UI_PrintStringSmallBufferNormal(str, line); - - gUpdateStatus = true; } #endif #endif