diff options
| author | Ha Thach <[email protected]> | 2020-04-16 00:09:15 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-16 00:09:15 +0700 |
| commit | 61104297d50e5999743150d857bc8d63ecad076a (patch) | |
| tree | f103641028d5ef829550f67e79393ab963ee42b0 /src/class/hid | |
| parent | 4ad65342e59b7651c096f0eb6d4f5429f7f31d20 (diff) | |
| parent | b03b9eb93991c561610a01c379154e7db55e9f4b (diff) | |
Merge pull request #342 from hathach/class-driver-id
add subclass and protocol for matching driver id
Diffstat (limited to 'src/class/hid')
| -rw-r--r-- | src/class/hid/hid_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c index 7cb35f1ce..cbdc5bece 100644 --- a/src/class/hid/hid_device.c +++ b/src/class/hid/hid_device.c @@ -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(TUSB_CLASS_HID == desc_itf->bInterfaceClass); + uint8_t const *p_desc = (uint8_t const *) desc_itf; // Find available interface |
