summaryrefslogtreecommitdiff
path: root/src/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test.c b/src/test.c
index e4247d2..3a23db3 100644
--- a/src/test.c
+++ b/src/test.c
@@ -35,8 +35,8 @@ static void loop_device(int fd)
35 fprintf(stderr, "error: could not open device\n"); 35 fprintf(stderr, "error: could not open device\n");
36 return; 36 return;
37 } 37 }
38 while (poll_iobuf(&mt.buf, fd, 5000)) { 38 while (mtdev_pull(&mt.dev, fd, 1) > 0) {
39 while (read_packet(&mt, fd) > 0) { 39 if (parse_event(&mt)) {
40 extract_gestures(&gs, &mt); 40 extract_gestures(&gs, &mt);
41 output_gesture(&gs); 41 output_gesture(&gs);
42 } 42 }