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:
parent
6abae1f124
commit
cbe67dcc9d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue