lw-ip: Fix LWIP_DEBUG define which is always defined

This commit is contained in:
liuhan
2021-04-13 14:58:28 +08:00
committed by bot
parent eff7fd9052
commit 38db3d9507
2 changed files with 56 additions and 39 deletions

View File

@@ -991,7 +991,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