File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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
783783void WLED::handleConnection ()
You can’t perform that action at this time.
0 commit comments