From e72205be3c00581cc6fe2428b4daff38bd7c9a07 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 11 May 2012 00:05:25 +0000 Subject: 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 --- nuttx/drivers/input/stmpe11_tsc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nuttx/drivers') 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; } -- cgit v1.2.3