aboutsummaryrefslogtreecommitdiff
path: root/stm/stmusbd/usbd_pyb_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/stmusbd/usbd_pyb_core.c')
-rw-r--r--stm/stmusbd/usbd_pyb_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/stmusbd/usbd_pyb_core.c b/stm/stmusbd/usbd_pyb_core.c
index ac51e3ad8..d887b89c6 100644
--- a/stm/stmusbd/usbd_pyb_core.c
+++ b/stm/stmusbd/usbd_pyb_core.c
@@ -648,7 +648,7 @@ static uint8_t usbd_pyb_Setup(void *pdev, USB_SETUP_REQ *req) {
// Not a Data request
// Transfer the command to the interface layer */
- return VCP_fops.pIf_Ctrl(req->bRequest, NULL, 0);
+ return VCP_fops.pIf_Ctrl(req->bRequest, NULL, req->wValue);
}
} else if (req->wIndex == 2) {