minor bugfix - added process_pause
This commit is contained in:
parent
889a2bb024
commit
eec984dfe3
1 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: rssi-scanner.c,v 1.1 2009/04/25 09:41:37 joxe Exp $
|
* $Id: rssi-scanner.c,v 1.2 2009/04/25 22:38:00 joxe Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -68,7 +68,7 @@ do_rssi(void)
|
||||||
printf("RSSI:");
|
printf("RSSI:");
|
||||||
for(channel = 0; channel <= 79; ++channel) {
|
for(channel = 0; channel <= 79; ++channel) {
|
||||||
set_frq(channel + 55);
|
set_frq(channel + 55);
|
||||||
printf("%d ", cc2420_rssi() + 53);
|
printf("%d ", cc2420_rssi() + 55);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
@ -86,6 +86,7 @@ PROCESS_THREAD(scanner_process, ev, data)
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
do_rssi();
|
do_rssi();
|
||||||
|
PROCESS_PAUSE();
|
||||||
}
|
}
|
||||||
|
|
||||||
PROCESS_END();
|
PROCESS_END();
|
||||||
|
|
Loading…
Reference in a new issue