lwip: Fix LWIP_DEBUG define which is always defined

This commit is contained in:
yuanjm
2021-04-01 16:27:23 +08:00
committed by bot
parent 1b6b05f1ab
commit ef7583517d
2 changed files with 56 additions and 39 deletions

View File

@@ -1014,7 +1014,11 @@
/**
* LWIP_DEBUG: Enable lwip debugging in other modules.
*/
#define LWIP_DEBUG LWIP_DBG_OFF
#ifdef CONFIG_LWIP_DEBUG
#define LWIP_DEBUG LWIP_DBG_ON
#else
#undef LWIP_DEBUG
#endif
#define CHECKSUM_CHECK_UDP CONFIG_LWIP_CHECKSUM_CHECK_UDP
#define CHECKSUM_CHECK_IP CONFIG_LWIP_CHECKSUM_CHECK_IP