Fix Yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22315 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7ca4c7358d
commit
1474b93011
1 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ int button_read_device(int *data)
|
|||
int ret = 0;
|
||||
static int old_data = 0;
|
||||
|
||||
data = old_data;
|
||||
*data = old_data;
|
||||
|
||||
/* Filter button events out if HOLD button is pressed at firmware/ level */
|
||||
if(button_hold())
|
||||
|
@ -185,7 +185,7 @@ int button_read_device(int *data)
|
|||
if( UNLIKELY(!is_backlight_on(true)) )
|
||||
*data = 0;
|
||||
|
||||
old_data = data;
|
||||
old_data = *data;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue