diff --git a/src/UpdateServer.cpp b/src/UpdateServer.cpp index a2ec925..a2121da 100644 --- a/src/UpdateServer.cpp +++ b/src/UpdateServer.cpp @@ -45,10 +45,9 @@ static bool read_n(WiFiClient *client, char *buf, size_t n) Serial.print("/"); Serial.print(n); Serial.println(" total)"); - } else { - Serial.print("."); - delay(1); } + + delay(1); // allow other tasks to run during data reception } return nread == n; @@ -145,9 +144,9 @@ void UpdateServer::updateTask(void *arg) Update.write(buf, bytes_read); bytes_processed += bytes_read; - } else { - delay(1); } + + delay(1); } // all data processed?