Fixed bootloop if mDNS is used on builds without OTA support

This commit is contained in:
cschwinne
2020-09-03 14:04:33 +02:00
parent 503b8cbf34
commit 2f2bebe506
3 changed files with 12 additions and 2 deletions

View File

@@ -386,8 +386,12 @@ void WLED::initInterfaces()
strip.service();
// Set up mDNS responder:
if (strlen(cmDNS) > 0) {
if (!aOtaEnabled)
#ifndef WLED_DISABLE_OTA
if (!aOtaEnabled) //ArduinoOTA begins mDNS for us if enabled
MDNS.begin(cmDNS);
#else
MDNS.begin(cmDNS);
#endif
DEBUG_PRINTLN("mDNS started");
MDNS.addService("http", "tcp", 80);