summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNConrad <[email protected]>2022-06-28 23:26:54 -0400
committerhathach <[email protected]>2024-04-16 10:19:16 +0700
commit9588c3fac9e6625e73357f6edddd12f6d11cbd7d (patch)
tree40a7756f2b96922da3f2e96a4918b04e42a4738e /src
parent50738f2ab4cbb3d1c00db994279dec620b2870f0 (diff)
USBD: When SET_FEATURE(ENDPOINT_HALT), the DTOG must be reset.
Diffstat (limited to 'src')
-rw-r--r--src/device/usbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 96982c30b..034a9ae09 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -636,7 +636,7 @@ static bool invoke_class_control(uint8_t rhport, usbd_class_driver_t const * dri
}
// This handles the actual request and its response.
-// return false will cause its caller to stall control endpoint
+// Returns false if unable to complete the request, causing caller to stall control endpoints.
static bool process_control_request(uint8_t rhport, tusb_control_request_t const * p_request) {
usbd_control_set_complete_callback(NULL);
TU_ASSERT(p_request->bmRequestType_bit.type < TUSB_REQ_TYPE_INVALID);