mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Re-arm BLTime on keypress in overlay apps
This commit is contained in:
1 parent
a41fb99862
commit
07226822cd
1 file changed
+6
-1
@@ -97,8 +97,13 @@ static uint8_t app_get_key(void)
|
|||||||
return APP_KEY_INVALID;
|
return APP_KEY_INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!APP_IsScreenSaverDisplayed())
|
if (!APP_IsScreenSaverDisplayed()) {
|
||||||
|
if (key != KEY_INVALID)
|
||||||
|
BACKLIGHT_TurnOn(); /* re-arm BLTime on activity, mirrors ProcessKey():
|
||||||
|
overlay apps bypass the resident key handler, so
|
||||||
|
the saver would otherwise fire mid-use. */
|
||||||
return (uint8_t)key;
|
return (uint8_t)key;
|
||||||
|
}
|
||||||
|
|
||||||
if (key == KEY_INVALID)
|
if (key == KEY_INVALID)
|
||||||
return APP_KEY_SAVER;
|
return APP_KEY_SAVER;
|
||||||
|
|||||||
Reference in new issue
Block a user