From 720c7262b6d88d296d15de907cd21ad3b30d9aa0 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 9 Dec 2007 17:47:22 +0000 Subject: Add fix for Logitech HID proxy switching --- tools/hid2hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/hid2hci.c b/tools/hid2hci.c index 2f1e3a95..327299ed 100644 --- a/tools/hid2hci.c +++ b/tools/hid2hci.c @@ -138,7 +138,7 @@ static int send_report(int fd, const char *buf, size_t size) uref.field_index = 0; uref.usage_index = i; uref.usage_code = 0xff000001; - uref.value = buf[i]; + uref.value = buf[i] & 0x000000ff; err = ioctl(fd, HIDIOCSUSAGE, &uref); if (err < 0) return err; -- cgit