Fix logic error in D2+ touchscreen driver.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23217 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rob Purchase 2009-10-16 22:14:27 +00:00
parent e4af86a834
commit b91ae3c3cd

View file

@ -148,13 +148,13 @@ static int touchscreen_read_tsc200x(int *data, int *old_data)
btn = touchscreen_to_pixels((*data & 0xffff0000) >> 16,
(*data & 0x0000ffff),
data);
last_btn = btn;
}
}
last_read = current_tick;
last_btn = btn;
return btn;
}