diff --git a/drivers/usbhost/usbhost_hub.c b/drivers/usbhost/usbhost_hub.c index 85dacf8008..4b099b2fdd 100644 --- a/drivers/usbhost/usbhost_hub.c +++ b/drivers/usbhost/usbhost_hub.c @@ -825,7 +825,7 @@ static void usbhost_hub_event(FAR void *arg) } debouncetime += 25; - up_mdelay(25); + usleep(25*1000); } if (ret < 0 || debouncetime >= 1500) @@ -853,7 +853,7 @@ static void usbhost_hub_event(FAR void *arg) continue; } - up_mdelay(100); + usleep(100*1000); ctrlreq->type = USB_REQ_DIR_IN | USBHUB_REQ_TYPE_PORT; ctrlreq->req = USBHUB_REQ_GETSTATUS;