From 5979d7898897c8e4801fb46dacaf1763cfd18c42 Mon Sep 17 00:00:00 2001 From: Marianne Arnold Date: Mon, 26 Nov 2007 09:59:45 +0000 Subject: [PATCH] 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 --- apps/plugins/lib/helper.c | 8 ++++---- 1 file 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 */ }