mirror of
https://github.com/apache/nuttx.git
synced 2026-09-20 12:58:29 +08:00
Hub: Use usleep instead of up_mdelay
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user