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
This commit is contained in:
patacongo 2012-09-27 20:55:15 +00:00
parent 09e07d6550
commit 2ac7f18021

View File

@ -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;