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
This commit is contained in:
Thomas Martitz 2009-04-26 01:35:19 +00:00
parent 6abae1f124
commit cbe67dcc9d

View file

@ -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;