File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,6 @@ extern unsigned long __lwip_rand(void);
4545#define LWIP_NETIF_HOSTNAME 1
4646#define LWIP_NUM_NETIF_CLIENT_DATA 5
4747#define LWIP_NETCONN 0
48- #define LWIP_STATS 0
49- #define LWIP_STATS_DISPLAY 0
50- #define MEM_STATS 0
51- #define SYS_STATS 0
52- #define MEMP_STATS 0
53- #define LINK_STATS 0
5448#define LWIP_CHKSUM_ALGORITHM 0
5549#define LWIP_DHCP 1
5650#define LWIP_IPV4 1
@@ -114,6 +108,22 @@ extern void __setSystemTime(unsigned long long sec, unsigned long us);
114108#define SLIP_DEBUG (LWIP_DEBUG ? LWIP_DBG_ON : LWIP_DBG_OFF)
115109#define DHCP_DEBUG (LWIP_DEBUG ? LWIP_DBG_ON : LWIP_DBG_OFF)
116110
111+ #if !LWIP_DEBUG
112+ #define LWIP_STATS 0
113+ #define LWIP_STATS_DISPLAY 0
114+ #define MEM_STATS 0
115+ #define SYS_STATS 0
116+ #define MEMP_STATS 0
117+ #define LINK_STATS 0
118+ #else
119+ #define LWIP_STATS 1
120+ #define LWIP_STATS_DISPLAY 1
121+ #define MEM_STATS 1
122+ #define SYS_STATS 1
123+ #define MEMP_STATS 1
124+ #define LINK_STATS 1
125+ #endif
126+
117127#ifdef __cplusplus
118128}
119129#endif // __cplusplus
You can’t perform that action at this time.
0 commit comments