From 9f8e90fcc2bb926bcaddc56ba71ee214ff1749bb Mon Sep 17 00:00:00 2001 From: Robert Fisk Date: Mon, 6 Jan 2020 19:24:29 +1300 Subject: [PATCH] Correctly ignore bogus suspend messages on device reconnect --- .../Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Upstream/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c b/Upstream/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c index 523a2ec..ea6a8e6 100755 --- a/Upstream/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c +++ b/Upstream/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c @@ -190,6 +190,7 @@ USBD_StatusTypeDef USBD_Start (USBD_HandleTypeDef *pdev) USBD_LL_Start(pdev); pdev->usbCoreStatus = USB_STATUS_START; + pdev->dev_state = USBD_STATE_DEFAULT; return USBD_OK; }