Commit Graph

10 Commits

Author SHA1 Message Date
Peter Wu
8fbf5f92d2 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.
2013-09-28 16:19:14 +02:00
Peter Wu
09219eb747 Revert "Makefile: make user append to CFLAGS instead of overwriting it"
This reverts commit 98f9432088. This was a
lazy trick from me to allow adding `-fsanitize=address` easier, but
apparantly not all users are so happy with it.

Conflicts:
	Makefile
2013-09-04 17:42:23 +02:00
Peter Wu
9d5ac81f32 Makefile: add install{,-udevrule} and uninstall
This is supposed to help distro packagers of ltunify.
2013-07-23 14:10:36 +02:00
Peter Wu
e2faf04f8f ltunify: preliminary HID++ 2.0 support, add TODO 2013-04-30 17:40:53 +02:00
Peter Wu
a52d34aa52 Makefile: fix installation dir 2013-04-25 18:30:57 +02:00
Peter Wu
98f9432088 Makefile: make user append to CFLAGS instead of overwriting it 2013-04-25 12:24:52 +02:00
Peter Wu
0e6b168b6d Makefile: make read-dev-usbmon depend on hidraw.c 2013-04-24 16:59:13 +02:00
Peter Wu
521d113a50 Makefile: "all" is a phony target 2013-04-24 14:50:01 +02:00
Peter Wu
abcf8c5ff8 Makefile: hardening flags, remove -Werror
Remove -Werror just in case compilers become more grumpy.
2013-04-24 10:42:25 +02:00
Peter Wu
3e2049b48b Add Makefile for convenience 2013-04-24 10:22:08 +02:00