From 989413efcbf3800a0ff94f4c7571548549461c81 Mon Sep 17 00:00:00 2001 From: liujp Date: Tue, 1 Apr 2025 19:57:56 +0800 Subject: [PATCH] fix(bug): fix ft5x06_sample error Signed-off-by: liujp --- drivers/input/ft5x06.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/ft5x06.c b/drivers/input/ft5x06.c index be5db167865..f4c3d7a40e9 100644 --- a/drivers/input/ft5x06.c +++ b/drivers/input/ft5x06.c @@ -481,7 +481,7 @@ static ssize_t ft5x06_sample(FAR struct ft5x06_dev_s *priv, FAR char *buffer, deltay = -deltay; } - if (deltax < CONFIG_FT5X06_THRESHX) + if (deltay < CONFIG_FT5X06_THRESHY) { /* Ignore... no significant change in Y either */