mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 13:45:10 -05:00
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;
|
int ret = 0;
|
||||||
static int old_data = 0;
|
static int old_data = 0;
|
||||||
|
|
||||||
data = old_data;
|
*data = old_data;
|
||||||
|
|
||||||
/* Filter button events out if HOLD button is pressed at firmware/ level */
|
/* Filter button events out if HOLD button is pressed at firmware/ level */
|
||||||
if(button_hold())
|
if(button_hold())
|
||||||
|
|
@ -185,7 +185,7 @@ int button_read_device(int *data)
|
||||||
if( UNLIKELY(!is_backlight_on(true)) )
|
if( UNLIKELY(!is_backlight_on(true)) )
|
||||||
*data = 0;
|
*data = 0;
|
||||||
|
|
||||||
old_data = data;
|
old_data = *data;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue