From 8fbf5f92d2b846a99377f76cee75bdb9032eb31c Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sat, 28 Sep 2013 16:19:14 +0200 Subject: ltunify: fix do_read failure when receiving unrelated messages When a touchpad event occurs while the device is being queried (e.g. for features), then do_io (for do_read) would fail because the report was not of the correct type (0x20 vs 0x11 for example). To fix this, make do_read retry reads (within the allowed timeout). Previously the expected report type was hidden in the msg parameter, make this expected report type more explicit now in a new parameter. --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9d16a38..b68ddfd 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ all: ltunify read-dev-usbmon read-dev-usbmon: read-dev-usbmon.c hidraw.c ltunify: ltunify.c hidpp20.c + $(CC) $(CFLAGS) -o $(OUTDIR)$@ $< -lrt .PHONY: all clean install-home install install-udevrule uninstall clean: -- cgit v1.2.1