mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
backlight: Fix dimmed display doesn't go to sleep
Firmware didn't start sleep countdown if 1. Display was already dimmed 2. Fade out timer was set You can reproduce this by: 1. Set fade out timer. For example, 500ms 2. Wait till display will be dimmed and go to sleep 3. Switch hold ON or plug headphones Change-Id: I27ca857aa8db4551bd9caad4815cd73a64bf6185
This commit is contained in:
parent
ad10ed806b
commit
246bf4af75
1 changed files with 2 additions and 1 deletions
|
|
@ -387,7 +387,8 @@ static void backlight_setup_fade_up(void)
|
||||||
|
|
||||||
static void backlight_setup_fade_down(void)
|
static void backlight_setup_fade_down(void)
|
||||||
{
|
{
|
||||||
if (bl_fade_out_step > 0)
|
/* Start fading display if it's not dimmed yet */
|
||||||
|
if (bl_fade_out_step > 0 && bl_dim_current > 0)
|
||||||
{
|
{
|
||||||
backlight_dim(0);
|
backlight_dim(0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue