From b91ae3c3cd70b3f87b69ba3527875daa96c3056f Mon Sep 17 00:00:00 2001 From: Rob Purchase Date: Fri, 16 Oct 2009 22:14:27 +0000 Subject: Fix logic error in D2+ touchscreen driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23217 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/tcc780x/cowond2/touchscreen-cowond2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/target/arm/tcc780x/cowond2') diff --git a/firmware/target/arm/tcc780x/cowond2/touchscreen-cowond2.c b/firmware/target/arm/tcc780x/cowond2/touchscreen-cowond2.c index d6483886ad..d7edae6dbe 100644 --- a/firmware/target/arm/tcc780x/cowond2/touchscreen-cowond2.c +++ b/firmware/target/arm/tcc780x/cowond2/touchscreen-cowond2.c @@ -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; } -- cgit v1.2.3