1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-10 04:22:05 +03:00

Pass errors from udp_sendto to WiFiUDP::endPacket (#1696)

This commit is contained in:
Ivan Grokhotkov
2016-03-02 19:58:35 +03:00
parent 33e5ca44df
commit aa67d1c492
2 changed files with 7 additions and 4 deletions

View File

@ -188,8 +188,7 @@ int WiFiUDP::endPacket()
if (!_ctx)
return 0;
_ctx->send();
return 1;
return (_ctx->send()) ? 1 : 0;
}
size_t WiFiUDP::write(uint8_t byte)