Add spec reference for 4-byte HID item size

This commit is contained in:
Ha Thach
2025-07-09 11:27:23 +07:00
parent 59b55898d9
commit 5eb68a3c87

View File

@@ -664,7 +664,7 @@ uint8_t tuh_hid_parse_report_descriptor(tuh_hid_report_info_t* report_info_arr,
uint8_t const type = header.type;
uint8_t size = header.size;
if (size == 3) {
size = 4;
size = 4; // HID 1.11 6.2.2.2 3 is 4 bytes
}
uint8_t const data8 = (size > 0) ? desc_report[0] : 0;