add some printf when a class is mounted
add initial tests for rndis
This commit is contained in:
@@ -134,7 +134,8 @@ tusb_error_t cdch_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t con
|
||||
return TUSB_ERROR_CDCH_UNSUPPORTED_SUBCLASS;
|
||||
}
|
||||
|
||||
if (CDC_COMM_PROTOCOL_ATCOMMAND != p_interface_desc->bInterfaceProtocol)
|
||||
if ( !(is_in_range(CDC_COMM_PROTOCOL_ATCOMMAND, p_interface_desc->bInterfaceProtocol, CDC_COMM_PROTOCOL_ATCOMMAND_CDMA) ||
|
||||
0xff == p_interface_desc->bInterfaceProtocol) )
|
||||
{
|
||||
return TUSB_ERROR_CDCH_UNSUPPORTED_PROTOCOL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user