summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
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;