Skip to content

Commit 13d61f5

Browse files
Update libraries/ArduinoOTA/src/ArduinoOTA.cpp
Co-authored-by: Jan Procházka <[email protected]>
1 parent 4a5b31d commit 13d61f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/ArduinoOTA/src/ArduinoOTA.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,10 @@ void ArduinoOTAClass::_runUpdate() {
315315
size_t r = client.read(buf, available);
316316
if(r != available){
317317
log_w("didn't read enough! %u != %u", r, available);
318-
if((int32_t) r<0){
319-
delay(1);
320-
continue; //let's not try to write 4 gigabytes when client.read returns -1
321-
}
318+
if((int32_t) r<0) {
319+
delay(1);
320+
continue; //let's not try to write 4 gigabytes when client.read returns -1
321+
}
322322
}
323323

324324
written = Update.write(buf, r);

0 commit comments

Comments
 (0)