From de416941068db51412566821c08ee6b11637d06c Mon Sep 17 00:00:00 2001 From: Bluebie Date: Tue, 17 Dec 2013 11:58:55 +1100 Subject: commandline: style stuff, no functional changes --- commandline/library/littleWire_util.c | 19 +++++++++---------- commandline/library/littleWire_util.h | 5 +++-- 2 files changed, 12 insertions(+), 12 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 /* 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 } diff --git a/commandline/library/littleWire_util.h b/commandline/library/littleWire_util.h index 27dc172..1f060c3 100644 --- a/commandline/library/littleWire_util.h +++ b/commandline/library/littleWire_util.h @@ -2,12 +2,13 @@ #define LITTLEWIRE_UTIL_H #if defined WIN - #include + #include #else - #include + #include #endif /* Delay in miliseconds */ void delay(unsigned int duration); +// end LITTLEWIRE_UTIL_H section: #endif -- cgit v1.2.3