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:
Peter D'Hoye 2008-05-08 21:23:31 +00:00
parent 7835a20347
commit 21a3733888
5 changed files with 56 additions and 2 deletions

View file

@ -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 */