diff options
Diffstat (limited to 'lib/libusbhid/descr.c')
-rw-r--r-- | lib/libusbhid/descr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libusbhid/descr.c b/lib/libusbhid/descr.c index def90da..0c66342 100644 --- a/lib/libusbhid/descr.c +++ b/lib/libusbhid/descr.c @@ -68,7 +68,7 @@ hid_get_report_id(int fd) if ((rep = hid_get_report_desc(fd)) == NULL) goto use_ioctl; kindset = 1 << hid_input | 1 << hid_output | 1 << hid_feature; - for (d = hid_start_parse(rep, kindset, 0); hid_get_item(d, &h); ) { + for (d = hid_start_parse(rep, kindset, -1); hid_get_item(d, &h); ) { /* Return the first report ID we met. */ if (h.report_ID != 0) { temp = h.report_ID; |