Fix backlight timeout in 'keep backlight running' plugins (related to yesterday's settings rework by Jens, fix also by him).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15809 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a124e1251a
commit
5979d78988
1 changed files with 4 additions and 4 deletions
|
@ -28,11 +28,11 @@ void backlight_force_on(struct plugin_api* rb)
|
|||
{
|
||||
if(!rb) return;
|
||||
/* #ifdef HAVE_BACKLIGHT */
|
||||
if (rb->global_settings->backlight_timeout > 1)
|
||||
rb->backlight_set_timeout(1);
|
||||
if (rb->global_settings->backlight_timeout > 0)
|
||||
rb->backlight_set_timeout(0);
|
||||
#if CONFIG_CHARGING
|
||||
if (rb->global_settings->backlight_timeout_plugged > 1)
|
||||
rb->backlight_set_timeout_plugged(1);
|
||||
if (rb->global_settings->backlight_timeout_plugged > 0)
|
||||
rb->backlight_set_timeout_plugged(0);
|
||||
#endif /* CONFIG_CHARGING */
|
||||
/* #endif */ /* HAVE_BACKLIGHT */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue