diff options
| author | sakumisu <[email protected]> | 2026-03-30 19:05:59 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-30 19:05:59 +0800 |
| commit | b53673c2dbfdb8860c3980fcc036f81c508f74d3 (patch) | |
| tree | 2ed52b5604a92d89e53f2a435d27391aeb237cb6 | |
| parent | 58b8ca02440a6892bdf7278401b6c27922015006 (diff) | |
fix(core/usbh_core): fix desc length parse
| -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 +} |
