driver: input: gt911: Fix to properly handle touch events on esp32

This fix properly ignores a multitouch event on esp32 board

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
This commit is contained in:
Mario Paja 2023-08-26 14:56:37 +02:00 committed by Fabio Baltieri
commit d72b79256c

View file

@ -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)) {