WiFi: partially fix flush() behaviour

We still need to check if trasmission is completed, BTW this commit
should alleviate bugs involving data loss.

See #4029
This commit is contained in:
Cristian Maglie 2015-11-11 16:31:46 +01:00
parent 934475b75b
commit 4878d5c2ec
2 changed files with 2 additions and 4 deletions

View File

@ -140,8 +140,7 @@ int WiFiClient::peek() {
}
void WiFiClient::flush() {
while (available())
read();
// TODO: a real check to ensure transmission has been completed
}
void WiFiClient::stop() {

View File

@ -155,8 +155,7 @@ int WiFiUDP::peek()
void WiFiUDP::flush()
{
while (available())
read();
// TODO: a real check to ensure transmission has been completed
}
IPAddress WiFiUDP::remoteIP()