Skip to content

Commit

Permalink
Update OTA Sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
Me No Dev committed Jul 11, 2015
1 parent b605ab3 commit 1cd50e4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ void loop() {
WiFiClient client;
if (client.connect(remote, port)) {

Serial.setDebugOutput(true);
while(!Update.isFinished()) Update.write(client);
uint32_t written;
while(!Update.isFinished()){
written = Update.write(client);
if(written > 0) client.print(written, DEC);
}
Serial.setDebugOutput(false);

if(Update.end()){
Expand Down

0 comments on commit 1cd50e4

Please sign in to comment.