diff options
author | Marianne Arnold <pixelma@rockbox.org> | 2007-11-26 09:59:45 +0000 |
---|---|---|
committer | Marianne Arnold <pixelma@rockbox.org> | 2007-11-26 09:59:45 +0000 |
commit | 5979d7898897c8e4801fb46dacaf1763cfd18c42 (patch) | |
tree | c30578bea1b92619dca556a4b4161e2d87613a61 | |
parent | a124e1251ace41dc40700be43e0e7ee2616cc5ac (diff) |
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
-rw-r--r-- | apps/plugins/lib/helper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/lib/helper.c b/apps/plugins/lib/helper.c index 65108cec8f..0151a36c6c 100644 --- a/apps/plugins/lib/helper.c +++ b/apps/plugins/lib/helper.c @@ -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 */ } |