mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-08 23:08:29 +00:00
Added simple-cc2420 include, added argument to mac->off()
This commit is contained in:
parent
9c57e5e272
commit
8f6d2d6c3f
@ -28,7 +28,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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/light.h"
|
||||||
#include "dev/sht11.h"
|
#include "dev/sht11.h"
|
||||||
|
#include "dev/simple-cc2420.h"
|
||||||
#include "sys/timesynch.h"
|
#include "sys/timesynch.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -130,11 +131,9 @@ static int
|
|||||||
do_rssi(void)
|
do_rssi(void)
|
||||||
{
|
{
|
||||||
static int sample;
|
static int sample;
|
||||||
int rssi_max;
|
int channel;
|
||||||
int channel, i;
|
|
||||||
rtimer_clock_t r;
|
|
||||||
|
|
||||||
rime_mac->off();
|
rime_mac->off(0);
|
||||||
|
|
||||||
simple_cc2420_on();
|
simple_cc2420_on();
|
||||||
for(channel = 11; channel <= 26; ++channel) {
|
for(channel = 11; channel <= 26; ++channel) {
|
||||||
|
Loading…
Reference in New Issue
Block a user