tud_hid_generic_get_report_cb and tud_hid_generic_set_report_cb are mandantory

This commit is contained in:
hathach
2018-07-31 13:45:31 +07:00
parent 1a0ffcee25
commit 191b73b58c
4 changed files with 25 additions and 10 deletions

View File

@@ -449,8 +449,8 @@ tusb_error_t hidd_control_request_st(uint8_t rhport, tusb_control_request_t cons
xferlen = p_hid->get_report_cb(report_id, (hid_report_type_t) report_type, p_hid->report_buf, p_request->wLength);
}else
{
// For boot Interface only: re-use report_buf -> report has no change
xferlen = p_request->wLength;
// re-use report_buf -> report has no change
}
STASK_ASSERT( xferlen > 0 );