diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-05-11 00:05:25 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-05-11 00:05:25 +0000 |
commit | e72205be3c00581cc6fe2428b4daff38bd7c9a07 (patch) | |
tree | 0c718467856492451acfb8af51db3d59abad08fb /nuttx/drivers | |
parent | 23897082d9d007335eda86b7d9af5a43b1b99f67 (diff) | |
download | px4-firmware-e72205be3c00581cc6fe2428b4daff38bd7c9a07.tar.gz px4-firmware-e72205be3c00581cc6fe2428b4daff38bd7c9a07.tar.bz2 px4-firmware-e72205be3c00581cc6fe2428b4daff38bd7c9a07.zip |
NxWM: Finishes touchscreen implementation; NuttX: Standardize touchscreen initialization interfaces for all boards
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4721 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/drivers')
-rw-r--r-- | nuttx/drivers/input/stmpe11_tsc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/drivers/input/stmpe11_tsc.c b/nuttx/drivers/input/stmpe11_tsc.c index a452d8798..29dc51d02 100644 --- a/nuttx/drivers/input/stmpe11_tsc.c +++ b/nuttx/drivers/input/stmpe11_tsc.c @@ -306,11 +306,16 @@ static inline int stmpe11_waitsample(FAR struct stmpe11_dev_s *priv, if (ret < 0) { + // Sample the errno (debug output could change it) + + int errval = errno; + /* If we are awakened by a signal, then we need to return * the failure now. */ - DEBUGASSERT(errno == EINTR); + idbg("sem_wait failed: %d\n", errval); + DEBUGASSERT(errval == EINTR); ret = -EINTR; goto errout; } |