Backlight dimming: Protect from extraneous calls with the same target value. This led to very short boost/unboost sequences for every button event before, one trigger for the volume lag bug.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7309 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6eccb2b82a
commit
48b6130123
1 changed files with 4 additions and 0 deletions
|
@ -162,6 +162,10 @@ static void backlight_release_timer(void)
|
|||
|
||||
static void backlight_dim(int value)
|
||||
{
|
||||
/* protect from extraneous calls with the same target value */
|
||||
if (value == bl_dim_target)
|
||||
return;
|
||||
|
||||
bl_dim_target = value;
|
||||
|
||||
if (bl_timer_active)
|
||||
|
|
Loading…
Reference in a new issue