Explorar o código

add enumeration success log

sakumisu %!s(int64=4) %!d(string=hai) anos
pai
achega
f7cd434ec7
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      core/usbh_core.c

+ 2 - 1
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) {