small update
moving the print slightly above
This commit is contained in:
@@ -738,6 +738,13 @@ void WLED::initInterfaces()
|
|||||||
|
|
||||||
strip.service();
|
strip.service();
|
||||||
|
|
||||||
|
#ifndef WLED_DISABLE_OTA // WLEDMM
|
||||||
|
if (aOtaEnabled) {
|
||||||
|
USER_PRINT(F(" ArduinoOTA: "));
|
||||||
|
USER_PRINTLN(ArduinoOTA.getHostname());
|
||||||
|
}
|
||||||
|
#endif // WLEDMM end
|
||||||
|
|
||||||
// Set up mDNS responder:
|
// Set up mDNS responder:
|
||||||
if (strlen(cmDNS) > 0) {
|
if (strlen(cmDNS) > 0) {
|
||||||
// "end" must be called before "begin" is called a 2nd time
|
// "end" must be called before "begin" is called a 2nd time
|
||||||
@@ -745,7 +752,7 @@ void WLED::initInterfaces()
|
|||||||
MDNS.end();
|
MDNS.end();
|
||||||
MDNS.begin(cmDNS);
|
MDNS.begin(cmDNS);
|
||||||
|
|
||||||
USER_PRINTLN(F("mDNS started."));
|
USER_PRINTF("mDNS started: %s.local\n", cmDNS); // WLEDMM
|
||||||
MDNS.addService("http", "tcp", 80);
|
MDNS.addService("http", "tcp", 80);
|
||||||
MDNS.addService("wled", "tcp", 80);
|
MDNS.addService("wled", "tcp", 80);
|
||||||
MDNS.addServiceTxt("wled", "tcp", "mac", escapedMac.c_str());
|
MDNS.addServiceTxt("wled", "tcp", "mac", escapedMac.c_str());
|
||||||
@@ -771,13 +778,6 @@ void WLED::initInterfaces()
|
|||||||
initMqtt();
|
initMqtt();
|
||||||
interfacesInited = true;
|
interfacesInited = true;
|
||||||
wasConnected = true;
|
wasConnected = true;
|
||||||
|
|
||||||
#ifndef WLED_DISABLE_OTA // WLEDMM
|
|
||||||
if (aOtaEnabled) {
|
|
||||||
USER_PRINT(F(" ArduinoOTA: "));
|
|
||||||
USER_PRINTLN(ArduinoOTA.getHostname());
|
|
||||||
}
|
|
||||||
#endif // WLEDMM end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WLED::handleConnection()
|
void WLED::handleConnection()
|
||||||
|
|||||||
Reference in New Issue
Block a user