From 45c7477650a19c2cbee5162c652e33786aa86b4d Mon Sep 17 00:00:00 2001 From: thomas-ha Date: Fri, 11 Mar 2016 11:02:43 +0100 Subject: [PATCH] original node.c --- examples/ipv6/rpl-tsch/node.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/ipv6/rpl-tsch/node.c b/examples/ipv6/rpl-tsch/node.c index beceff326..2aee41d81 100644 --- a/examples/ipv6/rpl-tsch/node.c +++ b/examples/ipv6/rpl-tsch/node.c @@ -38,7 +38,6 @@ #include "contiki.h" #include "node-id.h" -#include "linkaddr.h" #include "net/rpl/rpl.h" #include "net/ipv6/uip-ds6-route.h" #include "net/mac/tsch/tsch.h" @@ -132,7 +131,6 @@ net_init(uip_ipaddr_t *br_prefix) PROCESS_THREAD(node_process, ev, data) { static struct etimer et; - static unsigned short node_id; PROCESS_BEGIN(); /* 3 possible roles: @@ -144,8 +142,6 @@ PROCESS_THREAD(node_process, ev, data) static enum { role_6ln, role_6dr, role_6dr_sec } node_role; node_role = role_6ln; - node_id = linkaddr_node_addr.u8[LINKADDR_SIZE - 2] | linkaddr_node_addr.u8[LINKADDR_SIZE - 1]; - /* Set node with ID == 1 as coordinator, convenient in Cooja. */ if(node_id == 1) { if(LLSEC802154_CONF_SECURITY_LEVEL) {