forked from len0rd/rockbox
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
|
@ -484,6 +484,7 @@ static void backlight_update_state(void)
|
||||||
#if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_SETTING) \
|
#if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_SETTING) \
|
||||||
|| (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG)
|
|| (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG)
|
||||||
/* necessary step to issue fading down when the setting is selected */
|
/* necessary step to issue fading down when the setting is selected */
|
||||||
|
if (queue_empty(&backlight_queue))
|
||||||
queue_post(&backlight_queue, SYS_TIMEOUT, 0);
|
queue_post(&backlight_queue, SYS_TIMEOUT, 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue