mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #17333 from benpicco/gnrc/rpl-auto_init
gnrc/rpl: auto-init RPL if there is only a single interface
This commit is contained in:
commit
f9f95534f6
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
void auto_init_gnrc_rpl(void)
|
void auto_init_gnrc_rpl(void)
|
||||||
{
|
{
|
||||||
if (gnrc_netif_highlander()) {
|
if (gnrc_netif_highlander() || gnrc_netif_numof() == 1) {
|
||||||
gnrc_netif_t *netif = gnrc_netif_iter(NULL);
|
gnrc_netif_t *netif = gnrc_netif_iter(NULL);
|
||||||
if (netif == NULL) {
|
if (netif == NULL) {
|
||||||
/* XXX this is just a work-around ideally this would happen with
|
/* XXX this is just a work-around ideally this would happen with
|
||||||
|
Loading…
Reference in New Issue
Block a user