KSM edits to RA8875

Dependents:   Liz_Test_Code

Revision:
128:3c74ba4533dc
Parent:
127:db7f2c704693
Child:
129:3f2d8b84144d
--- a/RA8875_Touch.cpp	Sat Aug 06 20:04:23 2016 +0000
+++ b/RA8875_Touch.cpp	Sat Aug 06 22:14:01 2016 +0000
@@ -265,14 +265,16 @@
             numberOfTouchPoints = 0;
         }
         touchInfo[0].touchCode = ts;
+    } else /* (useTouchPanel == TP_CAP) */ {
+        ts = touchInfo[0].touchCode;
     }
     if (panelTouched == true) {
         panelTouched = false;
         if (TouchPoint) {
             *TouchPoint = touchInfo[0].coordinates;
             ts = touchInfo[0].touchCode;
-        } else {
-            ts = touch;
+        //} else {
+        //    ts = touch;
         }
     }
     return ts;