Skip to content

Commit ef8da0d

Browse files
committed
small update
moving the print slightly above
1 parent ae39fe8 commit ef8da0d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

wled00/wled.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -738,14 +738,21 @@ void WLED::initInterfaces()
738738

739739
strip.service();
740740

741+
#ifndef WLED_DISABLE_OTA // WLEDMM
742+
if (aOtaEnabled) {
743+
USER_PRINT(F(" ArduinoOTA: "));
744+
USER_PRINTLN(ArduinoOTA.getHostname());
745+
}
746+
#endif // WLEDMM end
747+
741748
// Set up mDNS responder:
742749
if (strlen(cmDNS) > 0) {
743750
// "end" must be called before "begin" is called a 2nd time
744751
// see https://github.com/esp8266/Arduino/issues/7213
745752
MDNS.end();
746753
MDNS.begin(cmDNS);
747754

748-
USER_PRINTLN(F("mDNS started."));
755+
USER_PRINTF("mDNS started: %s.local\n", cmDNS); // WLEDMM
749756
MDNS.addService("http", "tcp", 80);
750757
MDNS.addService("wled", "tcp", 80);
751758
MDNS.addServiceTxt("wled", "tcp", "mac", escapedMac.c_str());
@@ -771,13 +778,6 @@ void WLED::initInterfaces()
771778
initMqtt();
772779
interfacesInited = true;
773780
wasConnected = true;
774-
775-
#ifndef WLED_DISABLE_OTA // WLEDMM
776-
if (aOtaEnabled) {
777-
USER_PRINT(F(" ArduinoOTA: "));
778-
USER_PRINTLN(ArduinoOTA.getHostname());
779-
}
780-
#endif // WLEDMM end
781781
}
782782

783783
void WLED::handleConnection()

0 commit comments

Comments
 (0)