mirror of https://github.com/noisymime/Arduino.git
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:
parent
934475b75b
commit
4878d5c2ec
|
@ -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() {
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue