From 8e47dd37d61f50a3c1ef985a93db0180b2688e1c Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 27 Sep 2012 20:55:15 +0000 Subject: Fix ID tagging in ADS7843/XPT2046 touchscreen driver git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5201 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/drivers/input/ads7843e.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nuttx') 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; -- cgit v1.2.3