mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Add sim touchscreen bugfixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3999 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -298,7 +298,7 @@ static int up_waitsample(FAR struct up_dev_s *priv,
|
|||||||
sem_post(&priv->devsem);
|
sem_post(&priv->devsem);
|
||||||
|
|
||||||
/* Try to get the a sample... if we cannot, then wait on the semaphore
|
/* Try to get the a sample... if we cannot, then wait on the semaphore
|
||||||
* that is posted when new sample data is availble.
|
* that is posted when new sample data is available.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
while (up_sample(priv, sample) < 0)
|
while (up_sample(priv, sample) < 0)
|
||||||
@@ -449,6 +449,8 @@ static ssize_t up_read(FAR struct file *filep, FAR char *buffer, size_t len)
|
|||||||
report->point[0].id = priv->id;
|
report->point[0].id = priv->id;
|
||||||
report->point[0].x = sample.x;
|
report->point[0].x = sample.x;
|
||||||
report->point[0].y = sample.y;
|
report->point[0].y = sample.y;
|
||||||
|
report->point[0].h = 1;
|
||||||
|
report->point[0].w = 1;
|
||||||
report->point[0].pressure = 42;
|
report->point[0].pressure = 42;
|
||||||
|
|
||||||
/* Report the appropriate flags */
|
/* Report the appropriate flags */
|
||||||
|
|||||||
Reference in New Issue
Block a user