From 3560b27dc14b765627529a87b32570dffebb145d Mon Sep 17 00:00:00 2001 From: Ewoud Date: Thu, 8 Jun 2023 18:47:56 +0200 Subject: [PATCH] Tiny things --- wled00/FX_fcn.cpp | 3 +-- wled00/wled.h | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index 92e1c111..ca1c489d 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -1375,7 +1375,7 @@ void WS2812FX::enumerateLedmaps() { snprintf_P(fileName, sizeof(fileName), PSTR("/ledmap%d.json"), i); bool isFile = WLED_FS.exists(fileName); - #ifndef ESP8266 + #ifndef ESP8266 if (ledmapNames[i-1]) { //clear old name delete[] ledmapNames[i-1]; ledmapNames[i-1] = nullptr; @@ -1934,7 +1934,6 @@ void WS2812FX::resetSegments(bool boundsOnly) { //WLEDMM add boundsonly _mainSegment = 0; } else { //WLEDMM boundsonly for (segment &seg : _segments) { - bool recreateLeds = false; #ifndef WLED_DISABLE_2D seg.start = 0; seg.stop = Segment::maxWidth; diff --git a/wled00/wled.h b/wled00/wled.h index 5117c4d0..b2c70525 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2306080 +#define VERSION 2306081 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG @@ -702,8 +702,8 @@ WLED_GLOBAL volatile uint8_t loadedLedmap _INIT(0); // WLEDMM default 0 WLED_GLOBAL volatile bool suspendStripService _INIT(false); // WLEDMM temporarily prevent running strip.service, when strip or segments are "under update" and inconsistent #ifndef ESP8266 WLED_GLOBAL char *ledmapNames[WLED_MAX_LEDMAPS-1] _INIT_N(({nullptr})); -WLED_GLOBAL uint16_t ledmapMaxSize _INIT(0); //WLEDMM TroyHack #endif +WLED_GLOBAL uint16_t ledmapMaxSize _INIT(0); //WLEDMM TroyHack #if WLED_MAX_LEDMAPS>16 WLED_GLOBAL uint32_t ledMaps _INIT(0); // bitfield representation of available ledmaps #else