Ledmaps improvements
index.js: - add global ledmap variable - updateLen conditional draw parameter - draw black out not mapped json.cpp: - add "ledmap" in (de)serializeState (not info) - use loadedLedmap wled.cpp/h: - loadLedMap is boolean, use loadedLedmap for ledmap - show * password liveviewws2D: colorAmp settings2D: add id and name, change max to 255
This commit is contained in:
@@ -62,7 +62,7 @@ void WS2812FX::setUpMatrix(bool reset) {
|
||||
if (reset) { //WLEDMM: add reset option to switch on/off reset of customMappingTable
|
||||
// safety check
|
||||
if (Segment::maxWidth * Segment::maxHeight > MAX_LEDS || Segment::maxWidth <= 1 || Segment::maxHeight <= 1) {
|
||||
DEBUG_PRINTLN(F("2D Bounds error."));
|
||||
DEBUG_PRINTF("2D Bounds error. %d x %d\n", Segment::maxWidth, Segment::maxHeight);
|
||||
isMatrix = false;
|
||||
Segment::maxWidth = _length;
|
||||
Segment::maxHeight = 1;
|
||||
|
||||
Reference in New Issue
Block a user