summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-27 20:55:15 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-27 20:55:15 +0000
commit42659da2071819559da08116cf1ada64d10b5f80 (patch)
treee9713095e619bca820205f0d6fb99098d83d16ce
parent43ce5d2117ea381b4e1af5e483a4fb187ef3ed8b (diff)
downloadnuttx-42659da2071819559da08116cf1ada64d10b5f80.tar.gz
nuttx-42659da2071819559da08116cf1ada64d10b5f80.tar.bz2
nuttx-42659da2071819559da08116cf1ada64d10b5f80.zip
Fix ID tagging in ADS7843/XPT2046 touchscreen driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5201 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/drivers/input/ads7843e.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/drivers/input/ads7843e.c b/nuttx/drivers/input/ads7843e.c
index 27060bd07..06969e6d2 100644
--- a/nuttx/drivers/input/ads7843e.c
+++ b/nuttx/drivers/input/ads7843e.c
@@ -936,7 +936,7 @@ static ssize_t ads7843e_read(FAR struct file *filep, FAR char *buffer, size_t le
report = (FAR struct touch_sample_s *)buffer;
memset(report, 0, SIZEOF_TOUCH_SAMPLE_S(1));
report->npoints = 1;
- report->point[0].id = priv->id;
+ report->point[0].id = sample.id;
report->point[0].x = sample.x;
report->point[0].y = sample.y;