Fix FS#10362 (flickering backlight when removing hold) by preventing multiple SYS_TIMEOUT events being posted the backlight thread.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23730 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9b398752eb
commit
0b30eb79b1
1 changed files with 4 additions and 3 deletions
|
@ -481,10 +481,11 @@ static void backlight_update_state(void)
|
|||
if (UNLIKELY(timeout < 0))
|
||||
{
|
||||
do_backlight_off();
|
||||
#if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_SETTING) \
|
||||
#if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_SETTING) \
|
||||
|| (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG)
|
||||
/* necessary step to issue fading down when the setting is selected */
|
||||
queue_post(&backlight_queue, SYS_TIMEOUT, 0);
|
||||
/* necessary step to issue fading down when the setting is selected */
|
||||
if (queue_empty(&backlight_queue))
|
||||
queue_post(&backlight_queue, SYS_TIMEOUT, 0);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue