From 79ba20ddcc7dca79310343204f0c03eb8f7b45e0 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Thu, 25 Mar 2010 08:52:23 +0000 Subject: [PATCH] Updated to new collect router API --- apps/shell/shell-rime.c | 5 +++-- examples/rime/example-collect.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/shell/shell-rime.c b/apps/shell/shell-rime.c index 7c4c8f119..67869c0e0 100644 --- a/apps/shell/shell-rime.c +++ b/apps/shell/shell-rime.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: shell-rime.c,v 1.18 2010/03/19 13:24:26 adamdunkels Exp $ + * $Id: shell-rime.c,v 1.19 2010/03/25 08:52:23 adamdunkels Exp $ */ /** @@ -343,7 +343,8 @@ send_collect(void *dummy) void shell_rime_init(void) { - collect_open(&collect, SHELL_RIME_CHANNEL_COLLECT, &collect_callbacks); + collect_open(&collect, SHELL_RIME_CHANNEL_COLLECT, + COLLECT_ROUTER, &collect_callbacks); shell_register_command(&collect_command); shell_register_command(&mac_command); diff --git a/examples/rime/example-collect.c b/examples/rime/example-collect.c index c7b71d1ca..b3630f25e 100644 --- a/examples/rime/example-collect.c +++ b/examples/rime/example-collect.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: example-collect.c,v 1.11 2010/03/19 13:26:27 adamdunkels Exp $ + * $Id: example-collect.c,v 1.12 2010/03/25 08:52:23 adamdunkels Exp $ */ /** @@ -72,7 +72,7 @@ PROCESS_THREAD(example_collect_process, ev, data) SENSORS_ACTIVATE(button_sensor); - collect_open(&tc, 130, &callbacks); + collect_open(&tc, 130, COLLECT_ROUTER, &callbacks); if(rimeaddr_node_addr.u8[0] == 1 && rimeaddr_node_addr.u8[1] == 1) {