From 8f6d2d6c3fdb45914ac46fbce4c81095eb25d5d7 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Sun, 24 Feb 2008 22:27:41 +0000 Subject: [PATCH] Added simple-cc2420 include, added argument to mac->off() --- examples/sky/sky-collect.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/sky/sky-collect.c b/examples/sky/sky-collect.c index 7550093cf..ecd887edd 100644 --- a/examples/sky/sky-collect.c +++ b/examples/sky/sky-collect.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: sky-collect.c,v 1.3 2008/02/24 22:16:32 adamdunkels Exp $ + * $Id: sky-collect.c,v 1.4 2008/02/24 22:27:41 adamdunkels Exp $ */ /** @@ -47,6 +47,7 @@ #include "dev/light.h" #include "dev/sht11.h" +#include "dev/simple-cc2420.h" #include "sys/timesynch.h" #include #include @@ -130,11 +131,9 @@ static int do_rssi(void) { static int sample; - int rssi_max; - int channel, i; - rtimer_clock_t r; + int channel; - rime_mac->off(); + rime_mac->off(0); simple_cc2420_on(); for(channel = 11; channel <= 26; ++channel) {