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/vendor | |
| 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/vendor')
| -rw-r--r-- | src/class/vendor/vendor_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/class/vendor/vendor_device.c b/src/class/vendor/vendor_device.c index 8db5005f4..7f2fe9793 100644 --- a/src/class/vendor/vendor_device.c +++ b/src/class/vendor/vendor_device.c @@ -168,6 +168,8 @@ void vendord_reset(uint8_t rhport) bool vendord_open(uint8_t rhport, tusb_desc_interface_t const * itf_desc, uint16_t *p_len) { + TU_VERIFY(TUSB_CLASS_VENDOR_SPECIFIC == itf_desc->bInterfaceClass); + // Find available interface vendord_interface_t* p_vendor = NULL; for(uint8_t i=0; i<CFG_TUD_VENDOR; i++) |
