summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c5
1 files changed, 5 insertions, 0 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 24caac0100..592d0805a3 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
@@ -158,6 +158,9 @@ bool button_hold(void)
int button_read_device(int *data)
{
int ret = 0;
+ static int old_data = 0;
+
+ data = old_data;
/* Filter button events out if HOLD button is pressed at firmware/ level */
if(button_hold())
@@ -181,6 +184,8 @@ int button_read_device(int *data)
ret |= touchscreen_to_pixels(cur_touch >> 16, cur_touch & 0xFFFF, data);
if( UNLIKELY(!is_backlight_on(true)) )
*data = 0;
+
+ old_data = data;
}
return ret;