diff options
| author | Ha Thach <[email protected]> | 2024-01-11 22:53:21 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-11 22:53:21 +0700 |
| commit | 7db9119ef30b32921c0ed04920782c09ca1a9f86 (patch) | |
| tree | 9c64d556ad5068725a269b85fd3fc0143721c102 /src | |
| parent | f2f40c09653b148b8456a4ad3c98f503eb282b79 (diff) | |
| parent | c619a861414d2edeb34c5f59b74ed0fe28b39172 (diff) | |
Merge pull request #2411 from IngHK/cdch_vendor_class
[cdch] replaced vendor specific bInterfaceClass number by define
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/cdc/cdc_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c index b20da3723..79477ef53 100644 --- a/src/class/cdc/cdc_host.c +++ b/src/class/cdc/cdc_host.c @@ -641,7 +641,7 @@ bool cdch_open(uint8_t rhport, uint8_t daddr, tusb_desc_interface_t const *itf_d return acm_open(daddr, itf_desc, max_len); } #if CFG_TUH_CDC_FTDI || CFG_TUH_CDC_CP210X - else if ( 0xff == itf_desc->bInterfaceClass ) + else if ( TUSB_CLASS_VENDOR_SPECIFIC == itf_desc->bInterfaceClass ) { uint16_t vid, pid; TU_VERIFY(tuh_vid_pid_get(daddr, &vid, &pid)); |
