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);