Merge pull request #124 from netmindz/auto-playlist

New Usermod - Auto Playlist
This commit is contained in:
netmindz
2024-04-16 22:38:56 +01:00
committed by GitHub
10 changed files with 545 additions and 7 deletions

View File

@@ -65,10 +65,10 @@ void WS2812FX::setUpMatrix() {
}
USER_PRINTF("setUpMatrix %d x %d\n", Segment::maxWidth, Segment::maxHeight);
//WLEDMM recreate customMappingTable if more space needed
if (Segment::maxWidth * Segment::maxHeight > customMappingTableSize) {
size_t size = max(ledmapMaxSize, size_t(Segment::maxWidth * Segment::maxHeight));//TroyHack
size_t size = max(ledmapMaxSize, size_t(Segment::maxWidth * Segment::maxHeight)); // TroyHacks
USER_PRINTF("setupmatrix customMappingTable alloc %d from %d\n", size, customMappingTableSize);
//if (customMappingTable != nullptr) delete[] customMappingTable;
//customMappingTable = new uint16_t[size];