summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-09-28 16:19:14 +0200
committerPeter Wu <lekensteyn@gmail.com>2013-09-28 16:19:14 +0200
commit8fbf5f92d2b846a99377f76cee75bdb9032eb31c (patch)
tree5463c46859888b8ec72e10bb25da1a4f100521d7 /Makefile
parentbcdc930b761a2433624af946ccbddea8d7171807 (diff)
downloadltunify-8fbf5f92d2b846a99377f76cee75bdb9032eb31c.tar.gz
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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: