[G4][LIB][USB] Middlewares change: Fix memory corruption

This commit is contained in:
jflyper 2019-07-08 14:19:30 +09:00
parent 651c40c397
commit 53e81732f6
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ uint8_t USBD_HID_SendReport (USBD_HandleTypeDef *pdev,
{
USBD_HID_HandleTypeDef *hhid = (USBD_HID_HandleTypeDef*)pdev->pHID_ClassData;
if (pdev->dev_state == USBD_STATE_CONFIGURED )
if (pdev->dev_state == USBD_STATE_CONFIGURED || hhid)
{
if(hhid->state == HID_IDLE)
{