fix(radio): treat trims as controls rather than keys for backlight timeout (#7515)
This commit is contained in:
+8
-1
@@ -186,7 +186,14 @@ void killTrimEvents(event_t event);
|
||||
bool keysGetState(uint8_t key);
|
||||
uint8_t keysGetTrimState(uint8_t trim);
|
||||
|
||||
bool keysPollingCycle();
|
||||
// Activity flags returned by keysPollingCycle(). Trims are reported
|
||||
// separately so they can be treated as controls, not keys, for backlight.
|
||||
enum {
|
||||
KEY_ACTIVITY_KEYS = 0x01,
|
||||
KEY_ACTIVITY_TRIMS = 0x02,
|
||||
};
|
||||
|
||||
uint8_t keysPollingCycle();
|
||||
bool rotaryEncoderPollingCycle();
|
||||
|
||||
// Holding the per-target combo (KEYS_LOCK_KEY1 + KEYS_LOCK_KEY2 from hal.h)
|
||||
|
||||
Reference in New Issue
Block a user