diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-11 18:27:46 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-11 18:27:46 +0000 |
commit | 186c49997038f34f2b3efd6fd9aa4fde8f4213e1 (patch) | |
tree | 77ec188ac358d775f36b3d77fde24509afe7fd26 /NxWidgets/nxwm/src/ctouchscreen.cxx | |
parent | a280d993608d0c40ad0b4efc8adcbf72f67d53a4 (diff) | |
download | nuttx-186c49997038f34f2b3efd6fd9aa4fde8f4213e1.tar.gz nuttx-186c49997038f34f2b3efd6fd9aa4fde8f4213e1.tar.bz2 nuttx-186c49997038f34f2b3efd6fd9aa4fde8f4213e1.zip |
SMTPE11 and NxWM touchscreen fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4722 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/src/ctouchscreen.cxx')
-rw-r--r-- | NxWidgets/nxwm/src/ctouchscreen.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NxWidgets/nxwm/src/ctouchscreen.cxx b/NxWidgets/nxwm/src/ctouchscreen.cxx index 737c7d9e3..f5e476cce 100644 --- a/NxWidgets/nxwm/src/ctouchscreen.cxx +++ b/NxWidgets/nxwm/src/ctouchscreen.cxx @@ -295,19 +295,19 @@ FAR void *CTouchscreen::listener(FAR void *arg) DEBUGASSERT(sample); ssize_t nbytes = read(This->m_touchFd, sample, sizeof(struct touch_sample_s)); - vdbg("Received nbytes=%d\n", nbytes); // Check for errors if (nbytes < 0) { // The only expect error is to be interrupt by a signal - +#ifdef CONFIG_DEBUG int errval = errno; dbg("read %s failed: %d\n", CONFIG_NXWM_TOUCHSCREEN_DEVPATH, errval); DEBUGASSERT(errval == EINTR); +#endif } // On a truly success read, the size of the returned data will |