Skip to content

Commit

Permalink
sys: auto_init: only auto init network interfaces when module is actu…
Browse files Browse the repository at this point in the history
…ally selected
  • Loading branch information
kaspar030 committed May 17, 2015
1 parent a89b382 commit 8e1370b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sys/auto_init/auto_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ void auto_init(void)
#endif


/* initialize network devices */
/* initialize network devices */
#ifdef MODULE_AUTO_INIT_NG_NETIF

#ifdef MODULE_NG_AT86RF2XX
extern void auto_init_ng_at86rf2xx(void);
Expand All @@ -319,4 +320,6 @@ void auto_init(void)
extern void auto_init_xbee(void);
auto_init_xbee();
#endif

#endif /* MODULE_AUTO_INIT_NG_NETIF */
}

0 comments on commit 8e1370b

Please sign in to comment.