Make SLIP stats properly configurable

This commit is contained in:
George Oikonomou 2017-11-22 02:29:11 +00:00
parent 7fd76dc23e
commit 8f2fa80401
1 changed files with 3 additions and 3 deletions

View File

@ -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! */