mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
67fb5415f7
commit
0017dfbe82
3 changed files with 14 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue