summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-04-26 01:35:19 +0000
committerThomas Martitz <kugel@rockbox.org>2009-04-26 01:35:19 +0000
commitcbe67dcc9d0fa809124951740c5842aecd6fa299 (patch)
treed6c0616345eeed12e982c6f95d00141c6dc6c980
parent6abae1f124367a2936c91b651a360f21532705d1 (diff)
downloadrockbox-cbe67dcc9d0fa809124951740c5842aecd6fa299.zip
rockbox-cbe67dcc9d0fa809124951740c5842aecd6fa299.tar.gz
rockbox-cbe67dcc9d0fa809124951740c5842aecd6fa299.tar.bz2
rockbox-cbe67dcc9d0fa809124951740c5842aecd6fa299.tar.xz
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
-rw-r--r--firmware/backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 07c55c6..f15eb33 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;