reset hport bNumInterfaces when enum fails

This commit is contained in:
sakimisu
2022-12-07 21:38:20 +08:00
parent 4f83b333a0
commit 051c380f3b

View File

@@ -625,6 +625,7 @@ int usbh_enumerate(struct usbh_hubport *hport)
errout:
if (ret < 0) {
hport->config.config_desc.bNumInterfaces = 0;
usbh_hport_deactivate_ep0(hport);
}
if (hport->raw_config_desc) {