Correcting comments

This commit is contained in:
Rocky04 2023-08-07 21:25:50 +02:00 committed by GitHub
parent c959e65edd
commit 9602c06f8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -710,9 +710,10 @@ static bool process_control_request(uint8_t rhport, tusb_control_request_t const
_usbd_dev.speed = speed; // restore speed
}
// switch to new configuration if not zero
// Handle the new configuration and execute the corresponding callback
if ( cfg_num )
{
// switch to new configuration if not zero
TU_ASSERT( process_set_config(rhport, cfg_num) );
if ( tud_mount_cb ) tud_mount_cb();