Fixed undesirable boot color transition

This commit is contained in:
cschwinne 2021-08-06 02:08:36 +02:00
parent 815940913b
commit bd13336256
7 changed files with 1618 additions and 1607 deletions

View File

@ -2,6 +2,19 @@
### Builds after release 0.12.0 ### Builds after release 0.12.0
#### Build 2108050
- Fixed undesirable color transition from Orange to boot preset color on first boot
- Removed misleading Delete button on new playlist with one entry
- Updated NeoPixelBus to 2.6.7 and AsyncTCP to 1.1.1
#### Build 2107230
- Added skinning (extra custom CSS) (PR #2084)
- Added presets/config backup/restore (PR #2084)
- Added option for using length instead of Stop LED in UI (PR #2048)
- Added custom `holidays.json` holiday list (PR #2048)
#### Build 2107100 #### Build 2107100
- Version bump to 0.13.0-b2 "Toki" - Version bump to 0.13.0-b2 "Toki"

View File

@ -196,7 +196,7 @@ lib_deps =
${env.lib_deps} ${env.lib_deps}
# ESPAsyncTCP @ 1.2.0 # ESPAsyncTCP @ 1.2.0
ESPAsyncUDP ESPAsyncUDP
makuna/NeoPixelBus @ 2.6.4 # 2.6.5 and newer do not compile on ESP core < 3.0.0 makuna/NeoPixelBus @ 2.6.7 # 2.6.5/2.6.6 and newer do not compile on ESP core < 3.0.0
[esp32] [esp32]
build_flags = -g build_flags = -g
@ -205,8 +205,8 @@ build_flags = -g
lib_deps = lib_deps =
${env.lib_deps} ${env.lib_deps}
https://github.com/Makuna/NeoPixelBus.git # until next upstream release makuna/NeoPixelBus @ 2.6.7
AsyncTCP @ 1.0.3 AsyncTCP @ 1.1.1
[esp32s2] [esp32s2]
build_flags = -g build_flags = -g
@ -217,8 +217,8 @@ build_flags = -g
lib_deps = lib_deps =
${env.lib_deps} ${env.lib_deps}
https://github.com/Makuna/NeoPixelBus.git # until next upstream release makuna/NeoPixelBus @ 2.6.7
AsyncTCP @ 1.0.3 AsyncTCP @ 1.1.1
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# WLED BUILDS # WLED BUILDS

View File

@ -156,7 +156,7 @@
<p>Transition: <input id="tt" class="noslide" type="number" min="0" max="65.5" step="0.1" value="0.7">s</p> <p>Transition: <input id="tt" class="noslide" type="number" min="0" max="65.5" step="0.1" value="0.7">s</p>
</div> </div>
<div id="Favorites" class="tabcontent"> <div id="Presets" class="tabcontent">
<div id="putil"> <div id="putil">
</div> </div>
@ -173,7 +173,7 @@
<button class="tablinks" onclick="openTab(0)"><i class="icons">&#xe2b3;</i><p class="tab-label">Colors</p></button> <button class="tablinks" onclick="openTab(0)"><i class="icons">&#xe2b3;</i><p class="tab-label">Colors</p></button>
<button class="tablinks" onclick="openTab(1)"><i class="icons">&#xe23d;</i><p class="tab-label">Effects</p></button> <button class="tablinks" onclick="openTab(1)"><i class="icons">&#xe23d;</i><p class="tab-label">Effects</p></button>
<button class="tablinks" onclick="openTab(2)"><i class="icons">&#xe34b;</i><p class="tab-label">Segments</p></button> <button class="tablinks" onclick="openTab(2)"><i class="icons">&#xe34b;</i><p class="tab-label">Segments</p></button>
<button class="tablinks" onclick="openTab(3)"><i class="icons">&#xe04c;</i><p class="tab-label">Favorites</p></button> <button class="tablinks" onclick="openTab(3)"><i class="icons">&#xe04c;</i><p class="tab-label">Presets</p></button>
</div> </div>
<div id="connind"></div> <div id="connind"></div>

View File

@ -1311,7 +1311,7 @@ function refreshPlE(p) {
} }
plEDiv.innerHTML = content; plEDiv.innerHTML = content;
var dels = plEDiv.getElementsByClassName("btn-pl-del"); var dels = plEDiv.getElementsByClassName("btn-pl-del");
if (dels.length < 2 && p > 0) dels[0].style.display = "none"; if (dels.length < 2) dels[0].style.display = "none";
var sels = d.getElementById(`seg${p+100}`).getElementsByClassName("sel"); var sels = d.getElementById(`seg${p+100}`).getElementsByClassName("sel");
for (var i of sels) { for (var i of sels) {
@ -1331,7 +1331,7 @@ function addPl(p,i) {
} }
function delPl(p,i) { function delPl(p,i) {
if (plJson[p].ps.length < 2) {if (p == 0) resetPUtil(); return;} if (plJson[p].ps.length < 2) return;
plJson[p].ps.splice(i,1); plJson[p].ps.splice(i,1);
plJson[p].dur.splice(i,1); plJson[p].dur.splice(i,1);
plJson[p].transition.splice(i,1); plJson[p].transition.splice(i,1);

File diff suppressed because it is too large Load Diff

View File

@ -46,10 +46,6 @@ byte scaledBri(byte in)
void setAllLeds() { void setAllLeds() {
if (!realtimeMode || !arlsForceMaxBri)
{
strip.setBrightness(scaledBri(briT));
}
if (strip.isRgbw && strip.rgbwMode == RGBW_MODE_LEGACY) if (strip.isRgbw && strip.rgbwMode == RGBW_MODE_LEGACY)
{ {
colorRGBtoRGBW(col); colorRGBtoRGBW(col);
@ -61,6 +57,10 @@ void setAllLeds() {
{ {
col[3] = 0; colSec[3] = 0; col[3] = 0; colSec[3] = 0;
} }
if (!realtimeMode || !arlsForceMaxBri)
{
strip.setBrightness(scaledBri(briT));
}
} }
@ -142,7 +142,6 @@ void colorUpdated(int callMode)
} }
if (briT == 0) if (briT == 0)
{ {
//setLedsStandard(true); //do not color transition if starting from off!
if (callMode != CALL_MODE_NOTIFICATION) resetTimebase(); //effect start from beginning if (callMode != CALL_MODE_NOTIFICATION) resetTimebase(); //effect start from beginning
} }

View File

@ -8,7 +8,7 @@
*/ */
// version code in format yymmddb (b = daily build) // version code in format yymmddb (b = daily build)
#define VERSION 2107230 #define VERSION 2108050
//uncomment this if you have a "my_config.h" file you'd like to use //uncomment this if you have a "my_config.h" file you'd like to use
//#define WLED_USE_MY_CONFIG //#define WLED_USE_MY_CONFIG