summaryrefslogtreecommitdiff
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
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
-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()
43{ 43{
44 static long last_touch_interrupt = 0; 44 static long last_touch_interrupt = 0;
45 static int touch_data_index = 0; 45 static int touch_data_index = 0;
46
47 /* don't read the coordinates when hold is enabled */
48 if (button_hold()) return;
46 49
47 /* put the touchscreen into idle mode */ 50 /* put the touchscreen into idle mode */
48 pcf50606_write(PCF5060X_ADCC1, 0); 51 pcf50606_write(PCF5060X_ADCC1, 0);