platforms: use define for lockstep scheduler

Instead of using the define __PX4_POSIX_SITL it makes more sense to have
a define just to determine if the lockstep scheduler should be used.
This commit is contained in:
Julian Oes
2018-12-22 10:32:18 +01:00
parent 73578a593f
commit 547dd8511b
8 changed files with 18 additions and 10 deletions
+2 -2
View File
@@ -65,7 +65,7 @@
*/
#define system_exit exit
#if defined(__PX4_POSIX_SITL)
#if defined(ENABLE_LOCKSTEP_SCHEDULER)
#include <stdlib.h>
#include <unistd.h>
@@ -99,7 +99,7 @@
#include <unistd.h>
#include <time.h>
#else // defined(__PX4_POSIX_SITL)
#else // defined(ENABLE_LOCKSTEP_SCHEDULER)
#define system_usleep usleep
#define system_sleep sleep