sys: auto_init: only auto init network interfaces when module is actually selected

This commit is contained in:
Kaspar Schleiser 2015-05-17 21:01:07 +02:00
parent a89b382297
commit 8e1370b7bc

View File

@ -309,6 +309,7 @@ void auto_init(void)
/* initialize network devices */
#ifdef MODULE_AUTO_INIT_NG_NETIF
#ifdef MODULE_NG_AT86RF2XX
extern void auto_init_ng_at86rf2xx(void);
@ -319,4 +320,6 @@ void auto_init(void)
extern void auto_init_xbee(void);
auto_init_xbee();
#endif
#endif /* MODULE_AUTO_INIT_NG_NETIF */
}