usbd pre-compute total interface length without replying on driver open

This commit is contained in:
hathach
2021-09-14 12:47:20 +07:00
parent 103a11d449
commit 5404d6d8ae
2 changed files with 9 additions and 11 deletions

View File

@@ -989,7 +989,7 @@ static bool parse_configuration_descriptor(uint8_t dev_addr, tusb_desc_configura
if ( TUSB_DESC_INTERFACE_ASSOCIATION == tu_desc_type(p_desc) )
{
desc_iad = (tusb_desc_interface_assoc_t const *) p_desc;
p_desc = tu_desc_next(p_desc);
p_desc = tu_desc_next(p_desc); // next to Interface
}
TU_ASSERT( TUSB_DESC_INTERFACE == tu_desc_type(p_desc) );