Add status page link, show correct rssi, fix indexing off array in ipv4 builds
This commit is contained in:
parent
a5cbd0cd94
commit
35b2ce0cdb
7 changed files with 56 additions and 16 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: rf230bb.c,v 1.15 2010/12/03 20:42:01 dak664 Exp $
|
||||
* @(#)$Id: rf230bb.c,v 1.16 2010/12/04 21:32:35 dak664 Exp $
|
||||
*/
|
||||
/*
|
||||
* This code is almost device independent and should be easy to port.
|
||||
|
@ -123,7 +123,6 @@ struct timestamp {
|
|||
#define RADIOSTATS 1
|
||||
#endif
|
||||
#if RADIOSTATS
|
||||
uint8_t RF230_rsigsi;
|
||||
uint16_t RF230_sendpackets,RF230_receivepackets,RF230_sendfail,RF230_receivefail;
|
||||
#endif
|
||||
|
||||
|
@ -809,6 +808,9 @@ rf230_send(const void *payload, unsigned short payload_len)
|
|||
ret = rf230_transmit(payload_len);
|
||||
|
||||
bail:
|
||||
#if RADIOSTATS
|
||||
if (ret) RF230_sendfail++;
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
@ -968,7 +970,7 @@ if (RF230_receive_on) {
|
|||
* It calls the core MAC layer which calls rf230_read to get the packet
|
||||
* rf230processflag can be printed in the main idle loop for debugging
|
||||
*/
|
||||
#if 1
|
||||
#if 0
|
||||
uint8_t rf230processflag;
|
||||
#define RF230PROCESSFLAG(arg) rf230processflag=arg
|
||||
#else
|
||||
|
@ -1003,6 +1005,10 @@ PROCESS_THREAD(rf230_process, ev, data)
|
|||
&rf230_timetable);
|
||||
timetable_clear(&rf230_timetable);
|
||||
#endif /* RF230_TIMETABLE_PROFILING */
|
||||
} else {
|
||||
#if RADIOSTATS
|
||||
RF230_receivefail++;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue