From 50b2118731d544225e91c17b0be6535dc4680f25 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 2 Feb 2010 16:36:46 +0000 Subject: [PATCH] Send to node 1.0 instead of 41.41, to make the example work better in Cooja. --- examples/rime/example-unicast.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/rime/example-unicast.c b/examples/rime/example-unicast.c index 5d13222ab..4aab878b3 100644 --- a/examples/rime/example-unicast.c +++ b/examples/rime/example-unicast.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: example-unicast.c,v 1.4 2009/11/19 17:31:23 nifi Exp $ + * $Id: example-unicast.c,v 1.5 2010/02/02 16:36:46 adamdunkels Exp $ */ /** @@ -77,9 +77,11 @@ PROCESS_THREAD(example_unicast_process, ev, data) PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et)); packetbuf_copyfrom("Hello", 5); - addr.u8[0] = 41; - addr.u8[1] = 41; - unicast_send(&uc, &addr); + addr.u8[0] = 1; + addr.u8[1] = 0; + if(!rimeaddr_cmp(&addr, &rimeaddr_node_addr)) { + unicast_send(&uc, &addr); + } }