Преглед изворни кода

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

sakumisu пре 1 година
родитељ
комит
b045a1d490
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      core/usbh_core.c

+ 1 - 1
core/usbh_core.c

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