summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/onda_vx747
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-08-14 23:16:20 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-08-14 23:16:20 +0000
commit1474b93011df340766508cd76298846bb3331e4d (patch)
tree131fe0ff1b38b0a86363084d1fb8fd969a73feb0 /firmware/target/mips/ingenic_jz47xx/onda_vx747
parent7ca4c7358d6bbbcbe1b5f535e39e73036edb6495 (diff)
downloadrockbox-1474b93011df340766508cd76298846bb3331e4d.tar.gz
rockbox-1474b93011df340766508cd76298846bb3331e4d.tar.bz2
rockbox-1474b93011df340766508cd76298846bb3331e4d.zip
Fix Yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22315 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/onda_vx747')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c
index 592d0805a3..917a3bb06e 100644
--- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c
+++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c
@@ -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;