summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-12-09 17:47:22 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-12-09 17:47:22 +0000
commit720c7262b6d88d296d15de907cd21ad3b30d9aa0 (patch)
tree09b3707c1c3899228a98b04181498809d68d2eea /tools
parent20535eb126256b54a9822935a120a13494ff056b (diff)
Add fix for Logitech HID proxy switching
Diffstat (limited to 'tools')
-rw-r--r--tools/hid2hci.c2
1 files changed, 1 insertions, 1 deletions
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;