From cbe67dcc9d0fa809124951740c5842aecd6fa299 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 26 Apr 2009 01:35:19 +0000 Subject: [PATCH] Replace the condition with a more obvious function call, which is the same. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20794 a1c6a512-1295-4272-9138-f99709370657 --- firmware/backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/backlight.c b/firmware/backlight.c index 07c55c6bca..f15eb33530 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c @@ -867,7 +867,7 @@ void lcd_set_sleep_after_backlight_off(int index) lcd_sleep_timeout = HZ * lcd_sleep_timeout_value[index]; - if (backlight_timer > 0 || backlight_get_current_timeout() == 0) + if (is_backlight_on(true)) /* Timer will be set when bl turns off or bl set to on. */ return;