tested with hid

This commit is contained in:
hathach 2020-04-15 01:01:07 +07:00
parent 3ef6e33533
commit 8614dcece7
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581
1 changed files with 2 additions and 0 deletions

View File

@ -160,6 +160,8 @@ void hidd_reset(uint8_t rhport)
bool hidd_open(uint8_t rhport, tusb_desc_interface_t const * desc_itf, uint16_t *p_len)
{
TU_VERIFY(desc_itf->bInterfaceClass == TUSB_CLASS_HID);
uint8_t const *p_desc = (uint8_t const *) desc_itf;
// Find available interface