Skip to content

Commit 6ec4362

Browse files
committed
Touch only detecting only one touch fixed.
1 parent fd55b6e commit 6ec4362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/TouchCypress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ uint8_t Touch::tsGetData(uint16_t *xPos, uint16_t *yPos, uint8_t *z)
233233
tsScale(&_touchReport, E_INK_WIDTH - 1, E_INK_HEIGHT - 1, false, true, true);
234234

235235
// Copy values into ararys.
236-
for (int i = 0; i < 1; i++)
236+
for (int i = 0; i < _touchReport.fingers; i++)
237237
{
238238
// Save values into the arrays.
239239
xPos[i] = _touchReport.x[i];

0 commit comments

Comments
 (0)