Make SLIP stats properly configurable
This commit is contained in:
parent
7fd76dc23e
commit
8f2fa80401
|
@ -44,11 +44,11 @@ PROCESS(slip_process, "SLIP driver");
|
|||
/*---------------------------------------------------------------------------*/
|
||||
static uint8_t slip_active;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#if 1
|
||||
#define SLIP_STATISTICS(statement)
|
||||
#else
|
||||
#if SLIP_CONF_WITH_STATS
|
||||
static uint16_t slip_rubbish, slip_twopackets, slip_overflow, slip_ip_drop;
|
||||
#define SLIP_STATISTICS(statement) statement
|
||||
#else
|
||||
#define SLIP_STATISTICS(statement)
|
||||
#endif
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Must be at least one byte larger than UIP_BUFSIZE! */
|
||||
|
|
Loading…
Reference in New Issue