diff --git a/CHANGELOG.md b/CHANGELOG.md index e12a25f0..be0750be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ### Development versions after the 0.10.2 release +#### Build 2009070 + +- New Segments are now initialized with default speed and intensity + #### Build 2009030 - Fixed bootloop if mDNS is used on builds without OTA support diff --git a/wled00/FX.h b/wled00/FX.h index 05802b8f..86238c2e 100644 --- a/wled00/FX.h +++ b/wled00/FX.h @@ -37,6 +37,7 @@ #define DEFAULT_BRIGHTNESS (uint8_t)127 #define DEFAULT_MODE (uint8_t)0 #define DEFAULT_SPEED (uint8_t)128 +#define DEFAULT_INTENSITY (uint8_t)128 #define DEFAULT_COLOR (uint32_t)0xFFAA00 #define MIN(a,b) ((a)<(b)?(a):(b)) diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index d979dfcf..20bed951 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -529,6 +529,7 @@ void WS2812FX::resetSegments() { _segments[0].colors[0] = DEFAULT_COLOR; _segments[0].start = 0; _segments[0].speed = DEFAULT_SPEED; + _segments[0].intensity = DEFAULT_INTENSITY; _segments[0].stop = _length; _segments[0].grouping = 1; _segments[0].setOption(SEG_OPTION_SELECTED, 1); @@ -541,6 +542,8 @@ void WS2812FX::resetSegments() { _segments[i].grouping = 1; _segments[i].setOption(SEG_OPTION_ON, 1); _segments[i].opacity = 255; + _segments[i].speed = DEFAULT_SPEED; + _segments[i].intensity = DEFAULT_INTENSITY; _segment_runtimes[i].reset(); } _segment_runtimes[0].reset(); diff --git a/wled00/wled.h b/wled00/wled.h index f1245f49..bdbc9b86 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2009030 +#define VERSION 2009070 // 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).