From 8f4fc209a13f781c1cd90f3f3e6ad6d41fbe5eaf Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 22 Jun 2017 17:17:10 +1000 Subject: [PATCH] lwip: Enable LWIP assertions unless they are disabled globally --- components/lwip/include/lwip/port/arch/cc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/lwip/include/lwip/port/arch/cc.h b/components/lwip/include/lwip/port/arch/cc.h index 6fc1da184..3213c6667 100644 --- a/components/lwip/include/lwip/port/arch/cc.h +++ b/components/lwip/include/lwip/port/arch/cc.h @@ -69,8 +69,9 @@ typedef int sys_prot_t; #define LWIP_PLATFORM_DIAG(x) do {printf x;} while(0) #define LWIP_PLATFORM_ASSERT(x) do {printf(x); sys_arch_assert(__FILE__, __LINE__);} while(0) -//#define LWIP_DEBUG +#ifdef NDEBUG #define LWIP_NOASSERT +#endif //#define LWIP_ERROR #endif /* __ARCH_CC_H__ */