diff options
| author | hathach <[email protected]> | 2021-08-20 18:26:56 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-08-20 18:26:56 +0700 |
| commit | 62f2efbe8cf1e61f70660abac28f4226bca93daf (patch) | |
| tree | cbd993a9520e94c4617192b02c1332c80365c1d8 /src/class/hid/hid_host.h | |
| parent | 1cef2b6a42d93704847c1a6ab82617e5baf04f4a (diff) | |
hid host skip get report descriptor if too large instead of assert
Diffstat (limited to 'src/class/hid/hid_host.h')
| -rw-r--r-- | src/class/hid/hid_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/class/hid/hid_host.h b/src/class/hid/hid_host.h index ef203123d..bbef05e25 100644 --- a/src/class/hid/hid_host.h +++ b/src/class/hid/hid_host.h @@ -97,6 +97,8 @@ uint8_t tuh_hid_parse_report_descriptor(tuh_hid_report_info_t* reports_info_arr, // Invoked when device with hid interface is mounted // Report descriptor is also available for use. tuh_hid_parse_report_descriptor() // can be used to parse common/simple enough descriptor. +// Note: if report descriptor length > CFG_TUH_ENUMERATION_BUFSIZE, it will be skipped +// therefore report_desc = NULL, desc_len = 0 void tuh_hid_mount_cb(uint8_t dev_addr, uint8_t instance, uint8_t const* report_desc, uint16_t desc_len); // Invoked when device with hid interface is un-mounted |
