From a3a09b7094a05861c3651b740f99939d21062d7f Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 7 Sep 2019 03:51:26 +0000 Subject: [PATCH] Some newer HID devices have descriptors that are larger than 1k. Bump this to 2k to prevent them from being truncated and ignored. It appears to be a sanity check only, but bumping it to 2k allows both of my iic hid devices to be parsed and the second one to work... --- sys/dev/usb/usb_hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/usb_hid.c b/sys/dev/usb/usb_hid.c index 9e9909178fa9..6a33089588f5 100644 --- a/sys/dev/usb/usb_hid.c +++ b/sys/dev/usb/usb_hid.c @@ -74,7 +74,7 @@ static uint8_t hid_get_byte(struct hid_data *s, const uint16_t wSize); #define MAXUSAGE 64 #define MAXPUSH 4 #define MAXID 16 -#define MAXLOCCNT 1024 +#define MAXLOCCNT 2048 struct hid_pos_data { int32_t rid;