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;
|
static uint8_t slip_active;
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#if 1
|
#if SLIP_CONF_WITH_STATS
|
||||||
#define SLIP_STATISTICS(statement)
|
|
||||||
#else
|
|
||||||
static uint16_t slip_rubbish, slip_twopackets, slip_overflow, slip_ip_drop;
|
static uint16_t slip_rubbish, slip_twopackets, slip_overflow, slip_ip_drop;
|
||||||
#define SLIP_STATISTICS(statement) statement
|
#define SLIP_STATISTICS(statement) statement
|
||||||
|
#else
|
||||||
|
#define SLIP_STATISTICS(statement)
|
||||||
#endif
|
#endif
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* Must be at least one byte larger than UIP_BUFSIZE! */
|
/* Must be at least one byte larger than UIP_BUFSIZE! */
|
||||||
|
|
Loading…
Reference in New Issue