mirror of
https://github.com/STMicroelectronics/stm32-mw-usb-device.git
synced 2026-02-08 12:08:06 -05:00
Release v2.7.1
This commit is contained in:
@@ -500,9 +500,12 @@ USBD_StatusTypeDef USBD_LL_Reset(USBD_HandleTypeDef *pdev)
|
||||
return USBD_FAIL;
|
||||
}
|
||||
|
||||
if (pdev->pClass->DeInit != NULL)
|
||||
if (pdev->pClassData != NULL)
|
||||
{
|
||||
(void)pdev->pClass->DeInit(pdev, (uint8_t)pdev->dev_config);
|
||||
if (pdev->pClass->DeInit != NULL)
|
||||
{
|
||||
(void)pdev->pClass->DeInit(pdev, (uint8_t)pdev->dev_config);
|
||||
}
|
||||
}
|
||||
|
||||
/* Open EP0 OUT */
|
||||
|
||||
Reference in New Issue
Block a user