mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
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…
x
Reference in New Issue
Block a user