From d643fbdf8751034d3c6653d06a73ee197b8e1114 Mon Sep 17 00:00:00 2001 From: Robert Fisk Date: Tue, 13 Oct 2015 00:25:00 +1300 Subject: [PATCH] Previous commit missed an unsupported-device-flash-LED check. NOTE: Downstream's full-speed host controller is flakey when connecting to low-speed devices. One mouse enumerates on only 50% of connection events, while another mouse enumerates on 90% of connections. Grrr. --- .../Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Downstream/Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_core.c b/Downstream/Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_core.c index d049a4f..6d83164 100644 --- a/Downstream/Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_core.c +++ b/Downstream/Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_core.c @@ -423,7 +423,7 @@ USBH_StatusTypeDef USBH_Process(USBH_HandleTypeDef *phost) USBH_UsrLog("USB Device Attached"); /* Wait for 100 ms after Reset */ - USBH_Delay(100); + USBH_Delay(100); phost->device.speed = USBH_LL_GetSpeed(phost); @@ -541,6 +541,7 @@ USBH_StatusTypeDef USBH_Process(USBH_HandleTypeDef *phost) } else { + phost->pUser(phost, HOST_USER_CLASS_FAILED); phost->gState = HOST_ABORT_STATE; USBH_UsrLog ("No registered class for this device."); }