From 809883e632f02527c74ca538a2f74f301137771e Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Fri, 3 Jun 2016 15:53:16 +0200 Subject: [PATCH] Making example tsch-rime more flexible --- examples/rime-tsch/node.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/rime-tsch/node.c b/examples/rime-tsch/node.c index 91899c4b4..b8c017779 100644 --- a/examples/rime-tsch/node.c +++ b/examples/rime-tsch/node.c @@ -45,7 +45,6 @@ #include "net/mac/tsch/tsch.h" const linkaddr_t coordinator_addr = { { 1, 0 } }; -const linkaddr_t sender_addr = { { 2, 0 } }; const linkaddr_t destination_addr = { { 1, 0 } }; /*---------------------------------------------------------------------------*/ @@ -89,7 +88,7 @@ PROCESS_THREAD(unicast_test_process, ev, data) packetbuf_copyfrom("Hello", 5); - if(linkaddr_cmp(&sender_addr, &linkaddr_node_addr)) { + if(!linkaddr_cmp(&destination_addr, &linkaddr_node_addr)) { printf("App: sending unicast message to %u.%u\n", destination_addr.u8[0], destination_addr.u8[1]); unicast_send(&uc, &destination_addr); }