This is an automated email from the ASF dual-hosted git repository.

lupyuen pushed a commit to branch releases/12.9
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/releases/12.9 by this push:
     new 989413efcb fix(bug): fix ft5x06_sample error
989413efcb is described below

commit 989413efcbf3800a0ff94f4c7571548549461c81
Author: liujp <li...@xiaomi.com>
AuthorDate: Tue Apr 1 19:57:56 2025 +0800

    fix(bug): fix ft5x06_sample error
    
    Signed-off-by: liujp <li...@xiaomi.com>
---
 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 be5db16786..f4c3d7a40e 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 */
 

Reply via email to