make HAVE_WICED as subdefine from EMBEDDED

This commit is contained in:
Matthias Ringwald 2015-12-22 21:57:33 +01:00
parent b303a37ec9
commit 54780ef11e

View File

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