Fix Yellow

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22315 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2009-08-14 23:16:20 +00:00
parent 7ca4c7358d
commit 1474b93011

View file

@ -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;