summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc780x/cowond2/touchscreen-cowond2.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tcc780x/cowond2/touchscreen-cowond2.c')
-rw-r--r--firmware/target/arm/tcc780x/cowond2/touchscreen-cowond2.c6
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