rename tud_control_vendor_request_cb/complete_cb to tud_vendor_control_request_cb/complete_cb

This commit is contained in:
hathach
2019-07-24 09:45:32 +07:00
parent 8fad8fb5c2
commit c63f2b30cb
9 changed files with 62 additions and 33 deletions

View File

@@ -275,7 +275,8 @@ bool midid_open(uint8_t rhport, tusb_desc_interface_t const * p_interface_desc,
(*p_length) = sizeof(tusb_desc_interface_t);
uint8_t found_endpoints = 0;
while (found_endpoints < p_interface_desc->bNumEndpoints) {
while (found_endpoints < p_interface_desc->bNumEndpoints)
{
if ( TUSB_DESC_ENDPOINT == p_desc[DESC_OFFSET_TYPE])
{
TU_ASSERT( dcd_edpt_open(rhport, (tusb_desc_endpoint_t const *) p_desc), false);