Replace reads of rimestats with RIMESTATS_GET(x)
This commit is contained in:
parent
8c0cf50dca
commit
db078cf7e8
8 changed files with 45 additions and 43 deletions
|
@ -44,5 +44,6 @@
|
|||
|
||||
#define BUTTON_SENSOR_CONF_ON 1
|
||||
#define UIP_CONF_ICMP6 1
|
||||
#define RIMESTATS_CONF_ENABLED 1
|
||||
|
||||
#endif /* PROJECT_CONF_H_ */
|
||||
|
|
|
@ -92,10 +92,10 @@ static void
|
|||
print_stats()
|
||||
{
|
||||
PRINTF("tl=%lu, ts=%lu, bs=%lu, bc=%lu\n",
|
||||
rimestats.toolong, rimestats.tooshort, rimestats.badsynch,
|
||||
rimestats.badcrc);
|
||||
PRINTF("llrx=%lu, lltx=%lu, rx=%lu, tx=%lu\n", rimestats.llrx,
|
||||
rimestats.lltx, rimestats.rx, rimestats.tx);
|
||||
RIMESTATS_GET(toolong), RIMESTATS_GET(tooshort),
|
||||
RIMESTATS_GET(badsynch), RIMESTATS_GET(badcrc));
|
||||
PRINTF("llrx=%lu, lltx=%lu, rx=%lu, tx=%lu\n", RIMESTATS_GET(llrx),
|
||||
RIMESTATS_GET(lltx), RIMESTATS_GET(rx), RIMESTATS_GET(tx));
|
||||
}
|
||||
#endif
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue