Skip to content

Commit 9602c06

Browse files
authored
Correcting comments
1 parent c959e65 commit 9602c06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/device/usbd.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -710,9 +710,10 @@ static bool process_control_request(uint8_t rhport, tusb_control_request_t const
710710
_usbd_dev.speed = speed; // restore speed
711711
}
712712

713-
// switch to new configuration if not zero
713+
// Handle the new configuration and execute the corresponding callback
714714
if ( cfg_num )
715715
{
716+
// switch to new configuration if not zero
716717
TU_ASSERT( process_set_config(rhport, cfg_num) );
717718

718719
if ( tud_mount_cb ) tud_mount_cb();

0 commit comments

Comments
 (0)