Remove old neighbor.h inclusion

This commit is contained in:
adamdunkels 2010-03-19 13:20:40 +00:00
parent a3a8c0e179
commit f2c9b3e813
10 changed files with 40 additions and 33 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: example-collect.c,v 1.10 2010/02/03 21:11:33 adamdunkels Exp $
* $Id: example-collect.c,v 1.11 2010/03/19 13:26:27 adamdunkels Exp $
*/
/**
@ -42,7 +42,6 @@
#include "lib/random.h"
#include "net/rime.h"
#include "net/rime/collect.h"
#include "net/rime/neighbor.h"
#include "dev/leds.h"
#include "dev/button-sensor.h"
@ -75,6 +74,13 @@ PROCESS_THREAD(example_collect_process, ev, data)
collect_open(&tc, 130, &callbacks);
if(rimeaddr_node_addr.u8[0] == 1 &&
rimeaddr_node_addr.u8[1] == 1) {
printf("I am sink\n");
collect_set_sink(&tc, 1);
}
while(1) {
static struct etimer et;
@ -85,7 +91,7 @@ PROCESS_THREAD(example_collect_process, ev, data)
PROCESS_WAIT_EVENT();
if(etimer_expired(&et)) {
while(tc.forwarding) {
while(tc.sending) {
PROCESS_PAUSE();
}
printf("Sending\n");