Update os.c

This commit is contained in:
Kartik 2018-06-13 18:21:59 +05:30 committed by GitHub
parent 510504a853
commit a7e8defc52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,11 +164,8 @@ void osSetSpeedupEnable(bool enable)
__ctru_speedup_config(); __ctru_speedup_config();
} }
int usleep(useconds_t useconds) int __libctru_nanosleep(const struct timespec *req, struct timespec *rem)
{ {
svcSleepThread(req->tv_sec * 1000000000ull + req->tv_nsec);
svcSleepThread(useconds * 1000ull);
return 0; return 0;
} }