Skip to content

Commit

Permalink
driver: input: gt911: Fix to properly handle touch events on esp32
Browse files Browse the repository at this point in the history
This fix properly ignores a multitouch event on esp32 board

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
  • Loading branch information
mariopaja authored and fabiobaltieri committed Aug 30, 2023
1 parent ceb5995 commit d72b792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/input_gt911.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static int gt911_process(const struct device *dev)

points = status & TOUCH_POINTS_MSK;
if (points != 0U && points != 1U && (0 != (status & TOUCH_STATUS_MSK))) {
return 0;
points = 1;
}

if (!(status & TOUCH_STATUS_MSK)) {
Expand Down

0 comments on commit d72b792

Please sign in to comment.