diff options
| author | hathach <[email protected]> | 2019-07-01 22:38:06 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-07-01 22:38:06 +0700 |
| commit | 6991b28532605ceae685cb8be1fee904e09f12fe (patch) | |
| tree | 2d383bce7e232d56ee072f5fccdf2b688228da8d /src/class/cdc/cdc_device.c | |
| parent | 991aaf0158fcb02f7951a895a0caa6637e84fd8a (diff) | |
improving midi support, adding midi exmaple
rename TUSB_DESC_CLASS_SPECIFIC to TUSB_DESC_CS_INTERFACE
Diffstat (limited to 'src/class/cdc/cdc_device.c')
| -rw-r--r-- | src/class/cdc/cdc_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c index 0a41147c9..d9e128307 100644 --- a/src/class/cdc/cdc_device.c +++ b/src/class/cdc/cdc_device.c @@ -265,7 +265,7 @@ bool cdcd_open(uint8_t rhport, tusb_desc_interface_t const * itf_desc, uint16_t (*p_length) = sizeof(tusb_desc_interface_t);
// Communication Functional Descriptors
- while ( TUSB_DESC_CLASS_SPECIFIC == tu_desc_type(p_desc) )
+ while ( TUSB_DESC_CS_INTERFACE == tu_desc_type(p_desc) )
{
(*p_length) += tu_desc_len(p_desc);
p_desc = tu_desc_next(p_desc);
|
