Merge branch 'master' into host-hid

This commit is contained in:
hathach
2021-05-18 13:08:30 +07:00
11 changed files with 105 additions and 71 deletions

View File

@@ -75,6 +75,8 @@ void tuh_hid_unmounted_cb(uint8_t dev_addr, uint8_t instance)
void tuh_hid_get_report_cb(uint8_t dev_addr, uint8_t instance, uint8_t const* report, uint16_t len)
{
(void) dev_addr;
uint8_t const rpt_count = _report_count[instance];
tuh_hid_report_info_t* rpt_info;
@@ -86,6 +88,7 @@ void tuh_hid_get_report_cb(uint8_t dev_addr, uint8_t instance, uint8_t const* re
rpt_info = &_report_info[instance][idx];
report++;
len--;
}else
{
rpt_info = &_report_info[instance][0];