From b53673c2dbfdb8860c3980fcc036f81c508f74d3 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Mon, 30 Mar 2026 19:05:59 +0800 Subject: fix(core/usbh_core): fix desc length parse --- core/usbh_core.c | 4 ++-- 1 file 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 +} -- cgit v1.3.1