Release v2.11.3

This commit is contained in:
Rania JMAI
2024-05-16 14:38:40 +01:00
parent 7b5e6886d2
commit 0b06460a43
6 changed files with 113 additions and 574 deletions

View File

@@ -479,7 +479,15 @@ static uint8_t USBD_CUSTOM_HID_Setup(USBD_HandleTypeDef *pdev,
}
}
(void)USBD_CtlSendData(pdev, pbuf, len);
if (pbuf != NULL)
{
(void)USBD_CtlSendData(pdev, pbuf, len);
}
else
{
USBD_CtlError(pdev, req);
ret = USBD_FAIL;
}
break;
case USB_REQ_GET_INTERFACE: