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);
45
45
#define LWIP_NETIF_HOSTNAME 1
46
46
#define LWIP_NUM_NETIF_CLIENT_DATA 5
47
47
#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
54
48
#define LWIP_CHKSUM_ALGORITHM 0
55
49
#define LWIP_DHCP 1
56
50
#define LWIP_IPV4 1
@@ -114,6 +108,22 @@ extern void __setSystemTime(unsigned long long sec, unsigned long us);
114
108
#define SLIP_DEBUG (LWIP_DEBUG ? LWIP_DBG_ON : LWIP_DBG_OFF)
115
109
#define DHCP_DEBUG (LWIP_DEBUG ? LWIP_DBG_ON : LWIP_DBG_OFF)
116
110
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
+
117
127
#ifdef __cplusplus
118
128
}
119
129
#endif // __cplusplus
You can’t perform that action at this time.
0 commit comments