mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Lamp plugin: accept the reduced patch of FS #8934 by Alexander Papst
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17425 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7835a20347
commit
21a3733888
5 changed files with 56 additions and 2 deletions
|
@ -72,3 +72,22 @@ void remote_backlight_use_settings(struct plugin_api* rb)
|
|||
#endif /* CONFIG_CHARGING */
|
||||
}
|
||||
#endif /* HAVE_REMOTE_LCD */
|
||||
|
||||
#ifdef HAVE_BUTTON_LIGHT
|
||||
/* Force the buttonlight on */
|
||||
void buttonlight_force_on(struct plugin_api* rb)
|
||||
{
|
||||
if (!rb)
|
||||
return;
|
||||
if (rb->global_settings->buttonlight_timeout > 0)
|
||||
rb->buttonlight_set_timeout(0);
|
||||
}
|
||||
|
||||
/* Reset buttonlight operation to its settings */
|
||||
void buttonlight_use_settings(struct plugin_api* rb)
|
||||
{
|
||||
if (!rb)
|
||||
return;
|
||||
rb->buttonlight_set_timeout(rb->global_settings->buttonlight_timeout);
|
||||
}
|
||||
#endif /* HAVE_BUTTON_LIGHT */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue