Commit d0b7610
authored
fix(gt911): Fix flickering when GT911 has no data to read
Fix flickering when GT911 has no data to read
Points should only get cleared on successfully read operations.
Before this patch, the touch driver reported no touch, when in fact there was touch but the GT911 was not ready to report data.1 parent 740a580 commit d0b7610
File tree
1 file changed
+4
-5
lines changed- components/lcd_touch/esp_lcd_touch_gt911
1 file changed
+4
-5
lines changedLines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
250 | 252 | | |
251 | 253 | | |
252 | 254 | | |
253 | | - | |
254 | 255 | | |
| 256 | + | |
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
| |||
308 | 310 | | |
309 | 311 | | |
310 | 312 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | 313 | | |
315 | 314 | | |
316 | 315 | | |
| |||
0 commit comments