Skip to content

Commit

Permalink
Merge pull request #841 from vorbeiei/test
Browse files Browse the repository at this point in the history
fix STMPE610 touchscreen ghost touches
  • Loading branch information
fvanroie authored Dec 25, 2024
2 parents 3eda5a4 + 9a59ede commit 48884ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/drv/touch/touch_driver_stmpe610.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ bool touch_read(lv_indev_drv_t* indev_driver, lv_indev_data_t* data)
data->state = LV_INDEV_STATE_REL;

// while touched, but the state is released => read next point
while(data->state == LV_INDEV_STATE_REL && stmpe610_touchpanel.touched()) {

while(data->state == LV_INDEV_STATE_REL && !stmpe610_touchpanel.bufferEmpty()) {
TS_Point point = stmpe610_touchpanel.getPoint();
Log.trace(TAG_DRVR, F("STMPE610: x=%i y=%i z=%i"), point.x, point.y, point.z);

Expand Down

0 comments on commit 48884ee

Please sign in to comment.