Fix another future compile error

This commit is contained in:
Theo Arends 2022-05-31 15:29:03 +02:00
parent 19e8f1a2af
commit e8376885ff

View File

@ -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;