diff options
| author | hathach <[email protected]> | 2020-04-15 10:39:01 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-15 10:39:01 +0700 |
| commit | 490771a094baaa9ead60c7ea2e7c4a594d322825 (patch) | |
| tree | 2f3efa9558bac75c72ad0d7d3af0654d99bd93d0 /src/class | |
| parent | c1c9ca5629270e545c54d5e2983b77a5c3821a4e (diff) | |
test vendor
Diffstat (limited to 'src/class')
| -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++) |
