Skip to content

Commit 89788e3

Browse files
committed
EthernetUdp.cpp beginPacket fix IPAddress check
1 parent f122db4 commit 89788e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EthernetUdp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int
8181
UIPUDP::beginPacket(IPAddress ip, uint16_t port)
8282
{
8383
UIPEthernetClass::tick();
84-
if (ip && port)
84+
if ((ip[0] || ip[1] || ip[2] || ip[3]) && port)
8585
{
8686
uip_ipaddr_t ripaddr;
8787
uip_ip_addr(&ripaddr, ip);

0 commit comments

Comments
 (0)