summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/device/usbd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 047596924..e83553e0d 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -725,6 +725,9 @@ static bool process_control_request(uint8_t rhport, tusb_control_request_t const
// already configured: need to clear all endpoints and driver first
TU_LOG_USBD(" Clear current Configuration (%u) before switching\r\n", _usbd_dev.cfg_num);
+ // disable SOF
+ dcd_sof_enable(rhport, false);
+
// close all non-control endpoints, cancel all pending transfers if any
dcd_edpt_close_all(rhport);