Small changes and version 0.14.0.6.0

Including 2D peek max 4096 leds
This commit is contained in:
Ewoud
2022-11-24 10:57:18 +01:00
parent 17e6a887cb
commit ace3035d4a
7 changed files with 19 additions and 18 deletions

View File

@@ -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; i<map.size(); i++) {