From 54780ef11e92f66570e91271bb4bbd267352fb0a Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 22 Dec 2015 21:57:33 +0100 Subject: [PATCH] make HAVE_WICED as subdefine from EMBEDDED --- src/run_loop.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/run_loop.c b/src/run_loop.c index 1834d114d..ee5b4cf32 100644 --- a/src/run_loop.c +++ b/src/run_loop.c @@ -156,10 +156,16 @@ void run_loop_init(RUN_LOOP_TYPE type){ #endif switch (type) { #ifdef EMBEDDED +#ifdef HAVE_WICED + case RUN_LOOP_WICED: + the_run_loop = &run_loop_wiced; + break; +#else case RUN_LOOP_EMBEDDED: - the_run_loop = (run_loop_t*) &run_loop_embedded; + the_run_loop = &run_loop_embedded; break; #endif +#endif #ifdef USE_POSIX_RUN_LOOP case RUN_LOOP_POSIX: the_run_loop = &run_loop_posix; @@ -171,11 +177,6 @@ void run_loop_init(RUN_LOOP_TYPE type){ break; #endif default: -#ifdef HAVE_WICED - case RUN_LOOP_WICED: - the_run_loop = &run_loop_wiced; - break; -#endif #ifndef EMBEDDED log_error("ERROR: invalid run loop type %u selected!", type);