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
This commit is contained in:
Rob Purchase 2009-10-10 17:42:36 +00:00
parent 16ada4cb81
commit e6ec5414e8

View file

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