diff options
author | Bluebie <a@creativepony.com> | 2013-12-17 11:58:55 +1100 |
---|---|---|
committer | Bluebie <a@creativepony.com> | 2013-12-17 11:58:55 +1100 |
commit | de416941068db51412566821c08ee6b11637d06c (patch) | |
tree | 4aa3bf8d2dcfd86de3c41be04959c99b4bf51c2e /commandline/library/littleWire_util.c | |
parent | f40aad20287b7b928a2971202a12d21bc4f5bdb5 (diff) | |
download | micronucleus-de416941068db51412566821c08ee6b11637d06c.tar.gz micronucleus-de416941068db51412566821c08ee6b11637d06c.tar.bz2 micronucleus-de416941068db51412566821c08ee6b11637d06c.zip |
commandline: style stuff, no functional changes
Diffstat (limited to 'commandline/library/littleWire_util.c')
-rw-r--r-- | commandline/library/littleWire_util.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/commandline/library/littleWire_util.c b/commandline/library/littleWire_util.c index 985c4a3..c34460c 100644 --- a/commandline/library/littleWire_util.c +++ b/commandline/library/littleWire_util.c @@ -1,14 +1,13 @@ #include <littleWire_util.h> /* Delay in miliseconds */ -void delay(unsigned int duration) -{ - #if defined _WIN32 || defined _WIN64 - // use windows sleep api with milliseconds - // * 2 to make it run at half speed, because windows seems to have some trouble with this... - Sleep(duration * 2); - #else - // use standard unix api with microseconds - usleep(duration*1000); - #endif +void delay(unsigned int duration) { + #if defined _WIN32 || defined _WIN64 + // use windows sleep api with milliseconds + // * 2 to make it run at half speed, because windows seems to have some trouble with this... + Sleep(duration * 2); + #else + // use standard unix api with microseconds + usleep(duration*1000); + #endif } |