mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
use wificlient.available() where relevant (#6827)
This commit is contained in:
@ -303,7 +303,7 @@ void ArduinoOTAClass::_runUpdate() {
|
||||
client.setNoDelay(true);
|
||||
|
||||
uint32_t written, total = 0;
|
||||
while (!Update.isFinished() && client.connected()) {
|
||||
while (!Update.isFinished() && (client.connected() || client.available())) {
|
||||
int waited = 1000;
|
||||
while (!client.available() && waited--)
|
||||
delay(1);
|
||||
|
Reference in New Issue
Block a user