Hub: Use usleep instead of up_mdelay
This commit is contained in:
parent
1afb9315a5
commit
e903259476
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue