From f7cd434ec7fa060488cfa1f5932399ef3286646b Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sat, 12 Feb 2022 22:25:56 +0800 Subject: [PATCH] add enumeration success log --- core/usbh_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/usbh_core.c b/core/usbh_core.c index 9e77739c..7fa335b7 100644 --- a/core/usbh_core.c +++ b/core/usbh_core.c @@ -534,6 +534,7 @@ static int usbh_enumerate(struct usbh_hubport *hport) goto errout; } + USB_LOG_INFO("Enumeration success, start loading class driver\r\n"); /*search supported class driver*/ for (uint8_t i = 0; i < hport->config.config_desc.bNumInterfaces; i++) { intf_desc = &hport->config.intf[i].intf_desc; @@ -627,7 +628,7 @@ static void usbh_portchange_detect_thread(void *argument) } usb_osal_leave_critical_section(flags); - + while (1) { usbh_portchange_wait(&hport); if (hport->connected) {