diff options
| author | cpldcpu <cpldcpu@gmail.com> | 2013-12-17 10:06:40 +0100 | 
|---|---|---|
| committer | cpldcpu <cpldcpu@gmail.com> | 2013-12-17 10:06:40 +0100 | 
| commit | a44f516520527a08c251561b28ee973d4060195f (patch) | |
| tree | 4ce48f1e6762ffb12816fd7b6cd3c3e62705ef64 /commandline/library | |
| parent | a6afba324cc7ae49b755a2786104f45aea2b290c (diff) | |
| parent | 04e0d950d18fba8af17e844f9d6d0bb868cb5981 (diff) | |
| download | micronucleus-a44f516520527a08c251561b28ee973d4060195f.tar.gz micronucleus-a44f516520527a08c251561b28ee973d4060195f.tar.bz2 micronucleus-a44f516520527a08c251561b28ee973d4060195f.zip  | |
v1.10: Merging changes into testing
Diffstat (limited to 'commandline/library')
| -rw-r--r-- | commandline/library/littleWire_util.c | 19 | ||||
| -rw-r--r-- | 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 <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  } 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 <windows.h> +  #include <windows.h>  #else -    #include <unistd.h> +  #include <unistd.h>  #endif  /* Delay in miliseconds */  void delay(unsigned int duration); +// end LITTLEWIRE_UTIL_H section:  #endif  | 
