diff options
Diffstat (limited to 'src/device/usbd_control.c')
| -rw-r--r-- | src/device/usbd_control.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c index ae7e894b7..f06c44f02 100644 --- a/src/device/usbd_control.c +++ b/src/device/usbd_control.c @@ -74,7 +74,9 @@ void usbd_control_reset (uint8_t rhport) void usbd_control_stall(uint8_t rhport)
{
- dcd_edpt_stall(rhport, 0);
+ // when stalling control endpoint both IN and OUt will be stalled
+ dcd_edpt_stall(rhport, EDPT_CTRL_OUT);
+ dcd_edpt_stall(rhport, EDPT_CTRL_IN);
}
bool usbd_control_status(uint8_t rhport, tusb_control_request_t const * request)
|
