Skip to content

Commit 1cd50e4

Browse files
author
Me No Dev
committed
Update OTA Sketch
1 parent b605ab3 commit 1cd50e4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libraries/ESP8266mDNS/examples/DNS_SD_Arduino_OTA/DNS_SD_Arduino_OTA.ino

+5-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ void loop() {
5454
WiFiClient client;
5555
if (client.connect(remote, port)) {
5656

57-
Serial.setDebugOutput(true);
58-
while(!Update.isFinished()) Update.write(client);
57+
uint32_t written;
58+
while(!Update.isFinished()){
59+
written = Update.write(client);
60+
if(written > 0) client.print(written, DEC);
61+
}
5962
Serial.setDebugOutput(false);
6063

6164
if(Update.end()){

0 commit comments

Comments
 (0)