From d72b79256c857e3b9163906a59d9374b45742d30 Mon Sep 17 00:00:00 2001 From: Mario Paja Date: Sat, 26 Aug 2023 14:56:37 +0200 Subject: [PATCH] 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 --- drivers/input/input_gt911.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/input_gt911.c b/drivers/input/input_gt911.c index 1517c25ec65..f62be5f1e0f 100644 --- a/drivers/input/input_gt911.c +++ b/drivers/input/input_gt911.c @@ -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)) {