From e8376885ff5eec043a216ca3280074d771578480 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 31 May 2022 15:29:03 +0200 Subject: [PATCH] Fix another future compile error --- lib/libesp32/berry_tasmota/src/be_udp_lib.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libesp32/berry_tasmota/src/be_udp_lib.cpp b/lib/libesp32/berry_tasmota/src/be_udp_lib.cpp index 042962952..439771fba 100644 --- a/lib/libesp32/berry_tasmota/src/be_udp_lib.cpp +++ b/lib/libesp32/berry_tasmota/src/be_udp_lib.cpp @@ -1,8 +1,8 @@ /******************************************************************** * UDP lib - * + * * To use: `d = udp()` - * + * *******************************************************************/ #include "be_constobj.h" @@ -19,7 +19,7 @@ #include "be_mapping.h" extern "C" { - + // init() WiFiUDP *be_udp_init_ntv(void) { return new WiFiUDP(); @@ -39,7 +39,7 @@ extern "C" { // udp.begin(address:string, port:int) -> nil int32_t be_udp_begin_ntv(WiFiUDP *udp, const char *host, int32_t port) { - IPAddress addr(INADDR_ANY); + IPAddress addr((uint32_t)0); // if no host or host is "" then we defult to INADDR_ANY (0.0.0.0) if(host && (*host != 0) && !WiFiGenericClass::hostByName(host, addr)){ return 0;