1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00

Merge pull request #961 from sticilface/patch-2

Update ArduinoOTA.cpp
This commit is contained in:
Ivan Grokhotkov 2015-11-06 00:51:11 +03:00
commit 2f3f1f5a7e

View File

@ -51,6 +51,13 @@ void ArduinoOTA::setup() {
}
void ArduinoOTA::handle() {
if (!*_udp_ota) {
_udp_ota->begin(_port);
if (_serial_debug) {
Serial.println("OTA restarted");
}
}
if (!_udp_ota->parsePacket()) return;