Ledmap 1D / no width/height

This commit is contained in:
Ewoud
2023-06-15 11:29:41 +02:00
parent b53f9ac4b0
commit 117dd52ce4
2 changed files with 26 additions and 16 deletions

View File

@@ -63,6 +63,8 @@ void WS2812FX::setUpMatrix() {
return;
}
USER_PRINTF("setUpMatrix %d x %d\n", Segment::maxWidth, Segment::maxHeight);
//WLEDMM recreate customMappingTable if more space needed
if (Segment::maxWidth * Segment::maxHeight > customMappingTableSize) {
uint32_t size = MAX(ledmapMaxSize, Segment::maxWidth * Segment::maxHeight);//TroyHack