Call ts_read multiple times, to avoid events getting stuck in the pipeline.
This commit is contained in:
parent
7976ee51af
commit
fd594b0559
|
@ -85,9 +85,7 @@ TsRead (int tsPort, void *closure)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
n = ts_read(tsDev, &event, 1);
|
while (ts_read(tsDev, &event, 1) == 1)
|
||||||
|
|
||||||
if (n == 1)
|
|
||||||
{
|
{
|
||||||
if (event.pressure)
|
if (event.pressure)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue