diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2009-10-16 22:14:27 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2009-10-16 22:14:27 +0000 |
commit | b91ae3c3cd70b3f87b69ba3527875daa96c3056f (patch) | |
tree | c571417fdbbc92be916222a7f8379ef8083bd758 /firmware/target | |
parent | e4af86a834405b91b6c8ed38aa960e754af0eb7d (diff) | |
download | rockbox-b91ae3c3cd70b3f87b69ba3527875daa96c3056f.tar.gz rockbox-b91ae3c3cd70b3f87b69ba3527875daa96c3056f.zip |
Fix logic error in D2+ touchscreen driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23217 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/tcc780x/cowond2/touchscreen-cowond2.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) | |||
148 | btn = touchscreen_to_pixels((*data & 0xffff0000) >> 16, | 148 | btn = touchscreen_to_pixels((*data & 0xffff0000) >> 16, |
149 | (*data & 0x0000ffff), | 149 | (*data & 0x0000ffff), |
150 | data); | 150 | data); |
151 | |||
152 | last_btn = btn; | ||
153 | } | 151 | } |
154 | } | 152 | } |
155 | 153 | ||
156 | last_read = current_tick; | 154 | last_read = current_tick; |
157 | 155 | ||
156 | last_btn = btn; | ||
157 | |||
158 | return btn; | 158 | return btn; |
159 | } | 159 | } |
160 | 160 | ||