@@ -85,6 +85,7 @@ static cdch_interface_t cdch_data[CFG_TUH_CDC];
85
85
//--------------------------------------------------------------------+
86
86
87
87
//------------- ACM prototypes -------------//
88
+ static bool acm_open (uint8_t daddr , tusb_desc_interface_t const * itf_desc , uint16_t max_len );
88
89
static void acm_process_config (tuh_xfer_t * xfer );
89
90
90
91
static bool acm_set_line_coding (cdch_interface_t * p_cdc , cdc_line_coding_t const * line_coding , tuh_xfer_cb_t complete_cb , uintptr_t user_data );
@@ -610,8 +611,6 @@ bool cdch_xfer_cb(uint8_t daddr, uint8_t ep_addr, xfer_result_t event, uint32_t
610
611
// Enumeration
611
612
//--------------------------------------------------------------------+
612
613
613
- static bool acm_open (uint8_t daddr , tusb_desc_interface_t const * itf_desc , uint16_t max_len );
614
-
615
614
static bool open_ep_stream_pair (cdch_interface_t * p_cdc , tusb_desc_endpoint_t const * desc_ep )
616
615
{
617
616
for (size_t i = 0 ; i < 2 ; i ++ )
@@ -647,7 +646,7 @@ bool cdch_open(uint8_t rhport, uint8_t daddr, tusb_desc_interface_t const *itf_d
647
646
return acm_open (daddr , itf_desc , max_len );
648
647
}
649
648
#if CFG_TUH_CDC_FTDI || CFG_TUH_CDC_CP210X
650
- else if ( 0xff == itf_desc -> bInterfaceClass )
649
+ else if ( TUSB_CLASS_VENDOR_SPECIFIC == itf_desc - > bInterfaceClass )
651
650
{
652
651
uint16_t vid , pid ;
653
652
TU_VERIFY (tuh_vid_pid_get (daddr , & vid , & pid ));
0 commit comments