summaryrefslogtreecommitdiff
path: root/examples/host
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-08-20 22:21:30 +0700
committerGitHub <[email protected]>2021-08-20 22:21:30 +0700
commit58477b71f2989bc24480cb6e90dfd61506ec0ccd (patch)
treed4ae041de9cf357208d8afc39eb91dc3ddeca28e /examples/host
parentaab133ac69aaf371b5270850588e5d1cd6fb6de1 (diff)
parentbeb1a5c678dd50c3142d2c74a29e92affa0b06c9 (diff)
Merge pull request #1035 from hathach/improve-host-stack
Improve host stack
Diffstat (limited to 'examples/host')
-rw-r--r--examples/host/cdc_msc_hid/src/hid_app.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/host/cdc_msc_hid/src/hid_app.c b/examples/host/cdc_msc_hid/src/hid_app.c
index 420600f9a..5e3ac6a72 100644
--- a/examples/host/cdc_msc_hid/src/hid_app.c
+++ b/examples/host/cdc_msc_hid/src/hid_app.c
@@ -61,6 +61,8 @@ void hid_app_task(void)
// 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* desc_report, uint16_t desc_len)
{
printf("HID device address = %d, instance = %d is mounted\r\n", dev_addr, instance);