Skip to content

Commit

Permalink
Added WLEDMM_NO_MAP_RESET
Browse files Browse the repository at this point in the history
Allows use of ledmaps with segments without messing with the segments. LEDs can remain remapped even with segments on top of them. (For Dom)
  • Loading branch information
troyhacks authored Sep 16, 2024
1 parent 6b00d2f commit 645b45a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wled00/FX_fcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2558,6 +2558,7 @@ bool WS2812FX::deserializeMap(uint8_t n) {
uint16_t maxHeight = atoi(cleanUpName(fileName));
//DEBUG_PRINTF(" (\"height\": %s) \n", fileName)

#ifndef WLEDMM_NO_MAP_RESET
//WLEDMM: support ledmap file properties width and height: if found change segment
if (maxWidth * maxHeight > 0) {
Segment::maxWidth = maxWidth;
Expand All @@ -2566,6 +2567,7 @@ bool WS2812FX::deserializeMap(uint8_t n) {
}
else
setUpMatrix(); //reset segment sizes to panels
#endif
}

USER_PRINTF("deserializeMap %d x %d\n", Segment::maxWidth, Segment::maxHeight);
Expand Down

0 comments on commit 645b45a

Please sign in to comment.