Skip to content

Commit a4f7806

Browse files
mlitkesandeepmistry
authored andcommitted
Fix WiFiUDP::endPacket() return code
1 parent f3ad704 commit a4f7806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WiFiUdp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ int WiFiUDP::endPacket()
132132

133133
int result = WiFiSocket.sendto(_socket, (void *)_sndBuffer, _sndSize, 0, (struct sockaddr *)&addr, sizeof(addr));
134134

135-
return (result <= 0) ? 0 : 1;
135+
return (result < 0) ? 0 : 1;
136136
}
137137

138138
size_t WiFiUDP::write(uint8_t byte)

0 commit comments

Comments
 (0)