Throttle SetTmr status refresh

This commit is contained in:
Armel FAUVEAU committed 2026-05-12 18:34:10 +02:00
1 parent fa75ab4243
commit 34acff0fbf
2 files changed
+11 -2

No files matched your search

+11
View File
@@ -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)