USBD: When SET_FEATURE(ENDPOINT_HALT), the DTOG must be reset.

This commit is contained in:
NConrad 2022-06-28 23:26:54 -04:00 committed by hathach
parent 50738f2ab4
commit 9588c3fac9
No known key found for this signature in database
GPG Key ID: 26FAB84F615C3C52

View File

@ -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);