Skip to content

Commit 4a5b31d

Browse files
committed
Delay of 1ms already solves the issue
1 parent 9fbe842 commit 4a5b31d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ArduinoOTA/src/ArduinoOTA.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void ArduinoOTAClass::_runUpdate() {
316316
if(r != available){
317317
log_w("didn't read enough! %u != %u", r, available);
318318
if((int32_t) r<0){
319-
delay(50);
319+
delay(1);
320320
continue; //let's not try to write 4 gigabytes when client.read returns -1
321321
}
322322
}

0 commit comments

Comments
 (0)