fix(core/usbh_core.c): fix error name

This commit is contained in:
sakumisu
2024-08-24 15:53:19 +08:00
committed by GitHub
parent 563fbf58e1
commit b045a1d490

View File

@@ -549,7 +549,7 @@ int usbh_enumerate(struct usbh_hubport *hport)
setup->wLength = 16;
ret = usbh_control_transfer(hport, setup, ep0_request_buffer[hport->bus->busid]);
if (ret < 0 && (ret != -EPERM)) {
if (ret < 0 && (ret != -USB_ERR_STALL)) {
USB_LOG_ERR("Failed to get msosv1 compat id,errorcode:%d\r\n", ret);
goto errout;
}