fix(radio): treat trims as controls rather than keys for backlight timeout (#7515)

This commit is contained in:
3djc
2026-07-22 11:05:16 +10:00
committed by GitHub
parent 19708ce792
commit b706c40046
3 changed files with 21 additions and 4 deletions
+6 -1
View File
@@ -209,9 +209,14 @@ void per10ms()
}
#endif
if (keysPollingCycle()) {
uint8_t keyActivity = keysPollingCycle();
if (keyActivity & KEY_ACTIVITY_KEYS) {
inactivityTimerReset(ActivitySource::Keys);
}
if (keyActivity & KEY_ACTIVITY_TRIMS) {
// Trims are controls, not keys, for backlight purposes
inactivityTimerReset(ActivitySource::MainControls);
}
#if defined(FUNCTION_SWITCHES)
evalFunctionSwitches();