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

@ -1,5 +1,11 @@
## WLED changelog ## WLED changelog
### Development versions after the 0.10.2 release
#### Build 2009030
- Fixed bootloop if mDNS is used on builds without OTA support
### WLED version 0.10.2 ### WLED version 0.10.2
#### Build 2008310 #### Build 2008310

View File

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

View File

@ -8,7 +8,7 @@
*/ */
// version code in format yymmddb (b = daily build) // version code in format yymmddb (b = daily build)
#define VERSION 2008310 #define VERSION 2009030
// ESP8266-01 (blue) got too little storage space to work with all features of WLED. To use it, you must use ESP8266 Arduino Core v2.4.2 and the setting 512K(No SPIFFS). // ESP8266-01 (blue) got too little storage space to work with all features of WLED. To use it, you must use ESP8266 Arduino Core v2.4.2 and the setting 512K(No SPIFFS).