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...
This commit is contained in:
imp 2019-09-07 03:51:26 +00:00
parent 50511ab114
commit a3a09b7094

View File

@ -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;