From 76a552a985dd364036272c32546da6e873891a78 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 10 Mar 2026 10:22:19 +0100 Subject: [PATCH 1/2] chore: LwIP debug options Signed-off-by: Frederic Pillon --- src/lwipopts_default.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/lwipopts_default.h b/src/lwipopts_default.h index f605098..d32c98c 100644 --- a/src/lwipopts_default.h +++ b/src/lwipopts_default.h @@ -25,6 +25,35 @@ */ #define NO_SYS 1 +/* LWIP Debug options */ +#if !defined(NDEBUG) + #define LWIP_DBG_DEFAULT LWIP_DBG_ON +#else + #define LWIP_DBG_DEFAULT LWIP_DBG_OFF +#endif /* NDEBUG */ + +#if !defined(LWIP_DEBUG) + #define LWIP_DEBUG LWIP_DBG_DEFAULT +#endif /* LWIP_DEBUG */ +#if !defined(NETIF_DEBUG) + #define NETIF_DEBUG LWIP_DBG_DEFAULT +#endif /* NETIF_DEBUG */ +#if !defined(DHCP_DEBUG) + #define DHCP_DEBUG LWIP_DBG_DEFAULT +#endif /* DHCP_DEBUG */ +#if !defined(UDP_DEBUG) + #define UDP_DEBUG LWIP_DBG_DEFAULT +#endif /* UDP_DEBUG */ +#if !defined(MEMP_DEBUG) + #define MEMP_DEBUG LWIP_DBG_DEFAULT +#endif /* MEMP_DEBUG */ +#if !defined(MEM_DEBUG) + #define MEM_DEBUG LWIP_DBG_DEFAULT +#endif /* MEM_DEBUG */ +#if !defined(ICMP_DEBUG) + #define ICMP_DEBUG LWIP_DBG_DEFAULT +#endif /* ICMP_DEBUG */ + /** * SYS_LIGHTWEIGHT_PROT==1: if you want inter-task protection for certain * critical regions during buffer allocation, deallocation and memory From db3255235b2f578869222fa358c4faa163efc721 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 10 Mar 2026 11:00:19 +0100 Subject: [PATCH 2/2] fix: fsdata_custom is not used Fixes #97 Signed-off-by: Frederic Pillon --- src/lwipopts_default.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lwipopts_default.h b/src/lwipopts_default.h index d32c98c..138786b 100644 --- a/src/lwipopts_default.h +++ b/src/lwipopts_default.h @@ -247,7 +247,7 @@ The STM32F4x7 allows computing and verifying the IP, UDP, TCP and ICMP checksums /** Set this to 1 to include "fsdata_custom.c" instead of "fsdata.c" for the * file system (to prevent changing the file included in CVS) */ -#define HTTPD_USE_CUSTOM_FSDATA 1 +#define HTTPD_USE_CUSTOM_FSDATA 0 /* ------------------------------------