diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-10-17 17:26:06 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-10-17 17:26:06 -0600 |
commit | 26a35531f5c2a608bcfcbd8fea04506bb7fe04de (patch) | |
tree | a2da823b933b389a22959b677b604765d26e983a /NxWidgets/nxwm/src/ctouchscreen.cxx | |
parent | f92f9d7fec30cd8ea592df33c7126b9531eca834 (diff) | |
download | nuttx-26a35531f5c2a608bcfcbd8fea04506bb7fe04de.tar.gz nuttx-26a35531f5c2a608bcfcbd8fea04506bb7fe04de.tar.bz2 nuttx-26a35531f5c2a608bcfcbd8fea04506bb7fe04de.zip |
SAMA5 TSD: Fix to prohibit reading samples when not valid
Diffstat (limited to 'NxWidgets/nxwm/src/ctouchscreen.cxx')
-rw-r--r-- | NxWidgets/nxwm/src/ctouchscreen.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/NxWidgets/nxwm/src/ctouchscreen.cxx b/NxWidgets/nxwm/src/ctouchscreen.cxx index 105908859..b1f9f0557 100644 --- a/NxWidgets/nxwm/src/ctouchscreen.cxx +++ b/NxWidgets/nxwm/src/ctouchscreen.cxx @@ -531,6 +531,8 @@ void CTouchscreen::handleMouseInput(struct touch_sample_s *sample) x = (nxgl_coord_t)scaledX; y = (nxgl_coord_t)scaledY; + vdbg("raw: (%f6.2, %f6.2) scaled: (%f6.2, %f6.2) (%d, %d)\n", + rawX, rawY, scaledX, scaledY, x, y); #else // We have valid coordinates. Get the raw touch // position from the sample @@ -577,9 +579,8 @@ void CTouchscreen::handleMouseInput(struct touch_sample_s *sample) y = (nxgl_coord_t)bigY; } -#endif - vdbg("raw: (%d, %d) scaled: (%d, %d)\n", rawX, rawY, x, y); +#endif } // Get the server handle and "inject the mouse data |