From ace3035d4a4f75cd039f49889a3bf6f1ea0a9627 Mon Sep 17 00:00:00 2001 From: Ewoud Date: Thu, 24 Nov 2022 10:57:18 +0100 Subject: [PATCH] Small changes and version 0.14.0.6.0 Including 2D peek max 4096 leds --- package-lock.json | 4 ++-- package.json | 2 +- usermods/customeffects/customeffects.js | 1 - wled00/FX_fcn.cpp | 2 ++ wled00/html_ui.h | 24 ++++++++++++------------ wled00/wled.h | 2 +- wled00/ws.cpp | 2 +- 7 files changed, 19 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 41b53b80..290bba68 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wled", - "version": "0.14.0.5.0", + "version": "0.14.0.6.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "wled", - "version": "0.14.0.5.0", + "version": "0.14.0.6.0", "license": "ISC", "dependencies": { "clean-css": "^4.2.3", diff --git a/package.json b/package.json index ab4c8d4d..6c30d6d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wled", - "version": "0.14.0.5.0", + "version": "0.14.0.6.0", "description": "Tools for WLED project", "main": "tools/cdata.js", "directories": { diff --git a/usermods/customeffects/customeffects.js b/usermods/customeffects/customeffects.js index 2423cac5..85805b9b 100644 --- a/usermods/customeffects/customeffects.js +++ b/usermods/customeffects/customeffects.js @@ -121,7 +121,6 @@ function downloadCEFile(name) { var url = "https://raw.githubusercontent.com/MoonModules/WLED-Effects/master/CustomEffects/wled/"; fetchAndExecute(url, name, function(text) { - console.log(text); if (name == "wledv032.json" || name == "presets.json") { if (!confirm('Are you sure to download/overwrite ' + name + '?')) return; diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index f51e30f3..03092c92 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -1865,9 +1865,11 @@ void WS2812FX::deserializeMap(uint8_t n) { JsonArray map = doc[F("map")]; if (!map.isNull() && map.size()) { // not an empty map //WLEDMM: if isMatrix then customMap size is whole matrix +#ifndef WLED_DISABLE_2D if (isMatrix) customMappingSize = matrixWidth * matrixHeight; else +#endif customMappingSize = map.size(); customMappingTable = new uint16_t[customMappingSize]; for (uint16_t i=0; iqueueLength() > 0) return false; //only send if queue free uint16_t used = strip.getLengthTotal(); - const uint16_t MAX_LIVE_LEDS_WS = strip.isMatrix ? 1024 : 256; + const uint16_t MAX_LIVE_LEDS_WS = strip.isMatrix ? 4096 : 256; //WLEDMM use 4096 as max matrix size uint16_t n = ((used -1)/MAX_LIVE_LEDS_WS) +1; //only serve every n'th LED if count over MAX_LIVE_LEDS_WS uint16_t pos = (strip.isMatrix ? 6 : 2); //WLEDMM 6 instead of 4 uint16_t bufSize = pos + (used/n)*3;