From b045a1d4904251e6c42d55a6768f96b1bac49129 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sat, 24 Aug 2024 15:53:19 +0800 Subject: [PATCH] fix(core/usbh_core.c): fix error name --- core/usbh_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/usbh_core.c b/core/usbh_core.c index 2223c7aa..ab7c107b 100644 --- a/core/usbh_core.c +++ b/core/usbh_core.c @@ -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; }