Skip to content

Commit d963a60

Browse files
author
Jan Theiss
committed
no message
1 parent 2c9b648 commit d963a60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/ArduinoOTA/src/ArduinoOTA.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ void ArduinoOTAClass::_runUpdate() {
320320
} else {
321321
log_e("Write ERROR: %s", Update.errorString());
322322
}
323+
delay(1);
323324
}
324325

325326
if (Update.end()) {
@@ -358,7 +359,7 @@ void ArduinoOTAClass::end() {
358359

359360
void ArduinoOTAClass::handle() {
360361
if (!_initialized) {
361-
return;
362+
return;
362363
}
363364
if (_state == OTA_RUNUPDATE) {
364365
_runUpdate();

0 commit comments

Comments
 (0)