Skip to content
Snippets Groups Projects
Commit e4024d22 authored by kh1's avatar kh1
Browse files

Fix timeout bug on windows.

Sleep() is taking milliseconds instead of microseconds.
parent 7f7e9d86
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ typedef uint8_t Byte;
#endif
#if defined(WIN32) || defined(__MINGW32__)
# define usleep(time) Sleep(time)
# define usleep(time) Sleep(time / 1000)
#endif
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment