summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-07-09 11:27:23 +0700
committerHa Thach <[email protected]>2025-07-09 11:27:23 +0700
commit5eb68a3c8777b9085d1fea8e0bba1ac8fb5a26d6 (patch)
tree31daaf2806fa5e88d9dcd8cc9fe003d0e3214a9e /src/class
parent59b55898d9f40e7a436836c95c0885e5fc5a0c7c (diff)
Add spec reference for 4-byte HID item size
Diffstat (limited to 'src/class')
-rw-r--r--src/class/hid/hid_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/hid/hid_host.c b/src/class/hid/hid_host.c
index 0fbb97c53..56fccdd22 100644
--- a/src/class/hid/hid_host.c
+++ b/src/class/hid/hid_host.c
@@ -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;