forked from len0rd/rockbox
Replaced the booolean 'Backlight On When Plugged' setting with a complete alternative 'Backlight When Plugged' timeout setting. * Yield during poweroff to make backlight_off() work. * Bumped config version, save your settings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8053 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
47569223eb
commit
a6d409d9db
9 changed files with 113 additions and 133 deletions
|
|
@ -449,13 +449,8 @@ static int runcurrent(void)
|
|||
}
|
||||
|
||||
#if defined(CONFIG_BACKLIGHT) && !defined(BOOTLOADER)
|
||||
if ((backlight_get_timeout() == 1) /* LED always on */
|
||||
#ifdef HAVE_CHARGE_CTRL
|
||||
|| (charger_inserted() && backlight_get_on_when_charging())
|
||||
#endif
|
||||
) {
|
||||
if (backlight_get_current_timeout() == 0) /* LED always on */
|
||||
current += CURRENT_BACKLIGHT;
|
||||
}
|
||||
#endif
|
||||
|
||||
return(current);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue