diff options
| author | hathach <[email protected]> | 2019-03-13 23:14:48 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-03-13 23:14:48 +0700 |
| commit | eda56769b9126460f7721a9b3f04d4e4f6efd60d (patch) | |
| tree | 7a1d6bdde8db8af92b9e16583982eabbf0eff43e /src/device/usbd.c | |
| parent | 195a44172a964b377330bc7f269b611bb920fdc7 (diff) | |
dcd_set_address include status response, usbd control stall both control in and out
Diffstat (limited to 'src/device/usbd.c')
| -rw-r--r-- | src/device/usbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 5baea8460..d07c78c13 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -336,8 +336,8 @@ static bool process_control_request(uint8_t rhport, tusb_control_request_t const switch ( p_request->bRequest )
{
case TUSB_REQ_SET_ADDRESS:
- // response with status first before changing device address
- usbd_control_status(rhport, p_request);
+ // DCD must include zero-length status response since depending on mcu,
+ // status could be sent either before or after changing device address
dcd_set_address(rhport, (uint8_t) p_request->wValue);
return true; // skip the rest
break;
|
