Rename _buttonlight_timeout and use a function call instead of extern'ing buttonlight_timeout to be more inline with backlight, and use a #define instead of a const variable for !HAVE_LCD_SLEEP_SETTING (no functional changes)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20784 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-04-25 18:15:50 +00:00
parent 67fb5415f7
commit 0017dfbe82
3 changed files with 14 additions and 9 deletions

View file

@ -388,7 +388,7 @@ void _buttonlight_on(void)
void _buttonlight_off(void)
{
#ifndef BOOTLOADER
if(_buttonlight_timeout>0)
if(buttonlight_get_current_timeout() > 0)
__buttonlight_dim(true);
else
#endif