Commit e4024d22 authored by kh1's avatar kh1
Browse files

Fix timeout bug on windows.

Sleep() is taking milliseconds instead of microseconds.
parent 7f7e9d86
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment