mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 00:27:19 +08:00
[libc][delay] fix wrong usleep function
This commit is contained in:
parent
4ab11d5bbc
commit
19f311b498
@ -69,7 +69,7 @@ int usleep(useconds_t usec)
|
||||
}
|
||||
else /* scheduler has not run yet */
|
||||
{
|
||||
udelay(usec / 1000u);
|
||||
udelay(usec / 1000u * 1000u);
|
||||
}
|
||||
udelay(usec % 1000u);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user