mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Lamp plugin: Allow toggling the button light using "select".
Change-Id: I0f276a74010ef463ebdb0eb0cc00fc50123966f0
This commit is contained in:
parent
b84fd878d3
commit
272b558639
4 changed files with 34 additions and 0 deletions
|
@ -106,6 +106,12 @@ void buttonlight_force_on(void)
|
|||
rb->buttonlight_set_timeout(0);
|
||||
}
|
||||
|
||||
/* Force the buttonlight off */
|
||||
void buttonlight_force_off(void)
|
||||
{
|
||||
rb->buttonlight_set_timeout(-1);
|
||||
}
|
||||
|
||||
/* Turn off backlight timeout */
|
||||
void buttonlight_ignore_timeout(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue