Skip to content

Commit

Permalink
Fixed bootloop if mDNS is used on builds without OTA support
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie committed Sep 3, 2020
1 parent 503b8cb commit 2f2bebe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## 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

#### Build 2008310
Expand Down
6 changes: 5 additions & 1 deletion wled00/wled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion wled00/wled.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

// 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).

Expand Down

0 comments on commit 2f2bebe

Please sign in to comment.