fix(bug): fix ft5x06_sample error

Signed-off-by: liujp <liujp@xiaomi.com>
This commit is contained in:
liujp 2025-04-01 19:57:56 +08:00 committed by Lup Yuen Lee
parent 46c72c6738
commit 989413efcb

View file

@ -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 */