diff options
| author | sakumisu <[email protected]> | 2024-08-24 15:53:19 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-24 15:53:19 +0800 |
| commit | b045a1d4904251e6c42d55a6768f96b1bac49129 (patch) | |
| tree | 3175048f62a8ee9cd041cc74856cd03a1242bf9b | |
| parent | 563fbf58e122a3a6caa1efe7c0cdaa21177da818 (diff) | |
fix(core/usbh_core.c): fix error name
| -rw-r--r-- | core/usbh_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
