Skip to content

Commit 0c9892f

Browse files
committed
Update ArduinoOTA.cpp
my bad
1 parent 4665859 commit 0c9892f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/ArduinoOTA/ArduinoOTA.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ void ArduinoOTA::handle() {
5454

5555
if (!*_udp_ota) {
5656
_udp_ota->begin(_port);
57-
Serial.println(F("OTA restarted"));
57+
if (_serial_debug) {
58+
Serial.println("OTA restarted");
59+
}
5860
}
5961

6062
if (!_udp_ota->parsePacket()) return;

0 commit comments

Comments
 (0)