mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Making example tsch-rime more flexible
This commit is contained in:
parent
78f04fda83
commit
809883e632
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user