summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorRocky04 <[email protected]>2023-08-07 21:25:50 +0200
committerGitHub <[email protected]>2023-08-07 21:25:50 +0200
commit9602c06f8d52212b55b02533e188e91b7192c080 (patch)
treef0529a4953eccfad68a189de167da202da4e629b /src/device
parentc959e65edde0b07b80c3e12f177afd938abbdcd6 (diff)
Correcting comments
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 2daf91d77..156b92ce1 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -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();