summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/tcc780x
diff options
context:
space:
mode:
authorRob Purchase <shotofadds@rockbox.org>2009-10-10 17:42:36 +0000
committerRob Purchase <shotofadds@rockbox.org>2009-10-10 17:42:36 +0000
commite6ec5414e84e0a89aa34dbe4c83e9ec2c3fdf6dc (patch)
tree6ec3602a97b1e086be3d64eb267c16bd29cfc261 /firmware/target/arm/tcc780x
parent16ada4cb81c70c1a151c69aa08da13e55aba0081 (diff)
downloadrockbox-e6ec5414e84e0a89aa34dbe4c83e9ec2c3fdf6dc.tar.gz
rockbox-e6ec5414e84e0a89aa34dbe4c83e9ec2c3fdf6dc.zip
D2: Don't read touchscreen co-ordinates when hold is enabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23079 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tcc780x')
-rw-r--r--firmware/target/arm/tcc780x/cowond2/button-cowond2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/tcc780x/cowond2/button-cowond2.c b/firmware/target/arm/tcc780x/cowond2/button-cowond2.c
index 0f9a9b3d75..30d81fa059 100644
--- a/firmware/target/arm/tcc780x/cowond2/button-cowond2.c
+++ b/firmware/target/arm/tcc780x/cowond2/button-cowond2.c
@@ -43,6 +43,9 @@ void button_read_touch()
{
static long last_touch_interrupt = 0;
static int touch_data_index = 0;
+
+ /* don't read the coordinates when hold is enabled */
+ if (button_hold()) return;
/* put the touchscreen into idle mode */
pcf50606_write(PCF5060X_ADCC1, 0);