Skip to content

Commit 6e968aa

Browse files
committed
Merge remote-tracking branch 'remotes/esp8266/master' into w5100
2 parents 2a01c2a + 2f3f1f5 commit 6e968aa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libraries/ArduinoOTA/ArduinoOTA.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ void ArduinoOTA::setup() {
5151
}
5252

5353
void ArduinoOTA::handle() {
54+
55+
if (!*_udp_ota) {
56+
_udp_ota->begin(_port);
57+
if (_serial_debug) {
58+
Serial.println("OTA restarted");
59+
}
60+
}
5461

5562
if (!_udp_ota->parsePacket()) return;
5663

0 commit comments

Comments
 (0)