forked from len0rd/rockbox
Fix reversal of "always/never" in "LCD setting > Sleep (After Backlight Off)"
The bug was introduced in a06d9c8.
The patch also fixes some (more or less) related obsolete comments.
Change-Id: I5e491d64574c37cdbc46b146d7cfc555d86b9a11
This commit is contained in:
parent
7b118eccac
commit
3e504c3dcd
2 changed files with 14 additions and 11 deletions
|
|
@ -209,15 +209,18 @@ static void backlight_lcd_sleep_countdown(bool start)
|
|||
}
|
||||
|
||||
/* Start LCD sleep countdown */
|
||||
if (lcd_sleep_timeout < 0)
|
||||
if (lcd_sleep_timeout <= 0)
|
||||
{
|
||||
lcd_sleep_timer = 0; /* Setting == Always */
|
||||
/* Ensure lcd_sleep() is called from backlight_thread() */
|
||||
lcd_sleep_timer = 0;
|
||||
if (lcd_sleep_timeout == 0) /* Setting == Always */
|
||||
{
|
||||
/* Ensure lcd_sleep() is called from backlight_thread() */
|
||||
#if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_PWM)
|
||||
queue_post(&backlight_queue, LCD_SLEEP, 0);
|
||||
queue_post(&backlight_queue, LCD_SLEEP, 0);
|
||||
#else
|
||||
lcd_sleep();
|
||||
lcd_sleep();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue