summaryrefslogtreecommitdiff
path: root/src/class/cdc/cdc_host.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-07-04 02:09:12 +0700
committerGitHub <[email protected]>2019-07-04 02:09:12 +0700
commit2dd8dba4a7dc7b288a94054080932513ab1e98e3 (patch)
tree9759fd0cdf4fab9eb4a7674c37e1ea6aa61f1927 /src/class/cdc/cdc_host.c
parent393492823ce037a2e46d367d61fad1235859af2e (diff)
parent3ec279b424ea463577420e75db54deebf409be2b (diff)
Merge pull request #84 from hathach/develop
better support device MIDI
Diffstat (limited to 'src/class/cdc/cdc_host.c')
-rw-r--r--src/class/cdc/cdc_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c
index b64d4a1fe..6a6f508b3 100644
--- a/src/class/cdc/cdc_host.c
+++ b/src/class/cdc/cdc_host.c
@@ -142,7 +142,7 @@ bool cdch_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *it
(*p_length) = sizeof(tusb_desc_interface_t);
// Communication Functional Descriptors
- while( TUSB_DESC_CLASS_SPECIFIC == p_desc[DESC_OFFSET_TYPE] )
+ while( TUSB_DESC_CS_INTERFACE == p_desc[DESC_OFFSET_TYPE] )
{
if ( CDC_FUNC_DESC_ABSTRACT_CONTROL_MANAGEMENT == cdc_functional_desc_typeof(p_desc) )
{