Skip to content

Commit 7f40692

Browse files
committed
Fix return value of WiFiUDP::beginPacket(host, port)
Resolves #81
1 parent 1110dfa commit 7f40692

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/WiFiUdp.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ int WiFiUDP::beginPacket(const char *host, uint16_t port)
134134
{
135135
IPAddress ip;
136136
if (WiFi.hostByName(host, ip)) {
137-
_sndIP = ip;
138-
_sndPort = port;
139-
_sndSize = 0;
137+
return beginPacket(ip, port);
140138
}
141139

142140
return 0;

0 commit comments

Comments
 (0)