From eee34ddd917cbf20732357f10110f570be6a5ae2 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Tue, 5 Jun 2018 09:47:16 +0200 Subject: [PATCH] lwip fix for udp receivefrom --- components/lwip/api/sockets.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/lwip/api/sockets.c b/components/lwip/api/sockets.c index badde6613..181740813 100644 --- a/components/lwip/api/sockets.c +++ b/components/lwip/api/sockets.c @@ -1075,7 +1075,8 @@ lwip_recvfrom(int s, void *mem, size_t len, int flags, /* Check to see from where the data was.*/ if (done) { -#if !SOCKETS_DEBUG +/* enabling the UDP fix for ESP32 below when SOCKET_DEBUG is off */ +#if !SOCKETS_DEBUG && !ESP_LWIP if (from && fromlen) #endif /* !SOCKETS_DEBUG */ {