diff --git a/wled00/wled.cpp b/wled00/wled.cpp index d21e75a4c..967192efe 100644 --- a/wled00/wled.cpp +++ b/wled00/wled.cpp @@ -537,6 +537,13 @@ void WLED::beginStrip() else if (bri == 0) bri = 128; } else { // fix for #3196 + if (bootPreset > 0) { + bool oldTransition = fadeTransition; // workaround if transitions are enabled + fadeTransition = false; // ignore transitions temporarily + strip.setColor(0, BLACK); // set all segments black + fadeTransition = oldTransition; // restore transitions + col[0] = col[1] = col[2] = col[3] = 0; // needed for colorUpdated() + } briLast = briS; bri = 0; strip.fill(BLACK); strip.show(); diff --git a/wled00/wled.h b/wled00/wled.h index 217acd627..79488e8e8 100755 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2401130 +#define VERSION 2401140 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG @@ -364,7 +364,6 @@ WLED_GLOBAL char serverDescription[33] _INIT("WLED"); // Name of module - use d #else WLED_GLOBAL char serverDescription[33] _INIT(SERVERNAME); // use predefined name #endif -//WLED_GLOBAL bool syncToggleReceive _INIT(false); // UIs which only have a single button for sync should toggle send+receive if this is true, only send otherwise WLED_GLOBAL bool simplifiedUI _INIT(false); // enable simplified UI WLED_GLOBAL byte cacheInvalidate _INIT(0); // used to invalidate browser cache