diff options
| -rw-r--r-- | core/usbh_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/usbh_core.c b/core/usbh_core.c index 43bba3e8..15ec7fee 100644 --- a/core/usbh_core.c +++ b/core/usbh_core.c @@ -274,8 +274,8 @@ static int parse_config_descriptor(struct usbh_hubport *hport, struct usb_config break; } /* skip to next descriptor */ - p += p[DESC_bLength]; desc_len += p[DESC_bLength]; + p += p[DESC_bLength]; } } return 0; @@ -1214,4 +1214,4 @@ __WEAK uint8_t usbh_get_hport_active_config_index(struct usbh_hubport *hport) ARG_UNUSED(hport); return 0; // Default to configuration index 0 -}
\ No newline at end of file +} |
