fix(radio): treat trims as controls rather than keys for backlight timeout (#7515)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user