From cab5524effb678962d02e03eed2399ecb6a5e7b7 Mon Sep 17 00:00:00 2001 From: Torben Petersen <petersen@ibr.cs.tu-bs.de> Date: Thu, 22 Jul 2021 17:44:59 +0200 Subject: [PATCH] Changed IFace Selection for ibr-node. Works currently, might need fixing... --- software/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/software/main.c b/software/main.c index 60e8533..8355268 100644 --- a/software/main.c +++ b/software/main.c @@ -744,7 +744,12 @@ int main(void) gnrc_netif_t *netif = NULL; if((netif = gnrc_netif_iter(netif))) { + + #if defined(BOARD_IBR_NODE) + netif = gnrc_netif_iter(netif); + #endif gnrc_netif_t *ieee802154_netif = netif; + printf("Found gnrc netif: %d %d\n", netif->pid, ieee802154_netif->pid); /// +2 -> INGA working, but TelosB/Sky not send_thread_pid = thread_create(send_thread_stack, sizeof(send_thread_stack), THREAD_PRIORITY_MAIN + 2, THREAD_CREATE_STACKTEST, send_thread, ieee802154_netif, "send_thread"); -- GitLab