mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
xtimer: Use USEC_IN_NS for nanosleep
This commit is contained in:
parent
0fafe6c1a1
commit
e93840e68b
@ -499,7 +499,7 @@ static inline void xtimer_sleep(uint32_t seconds)
|
||||
|
||||
static inline void xtimer_nanosleep(uint32_t nanoseconds)
|
||||
{
|
||||
_xtimer_sleep(nanoseconds/1000, 0);
|
||||
_xtimer_sleep(nanoseconds / USEC_IN_NS, 0);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user