Add physical ledmap support + tiny changes

index.js, FX_fcn.cpp
- add physical ledmaps (lmPxyz.json)
This commit is contained in:
Ewoud
2023-02-28 17:17:22 +01:00
parent fbc9f9143e
commit 6b659ab52e
6 changed files with 831 additions and 796 deletions

View File

@@ -49,9 +49,11 @@
void deserializeSegment(JsonObject elem, byte it, byte presetId)
{
//WLEDMM add USER_PRINT
String temp;
serializeJson(elem, temp);
USER_PRINTF("deserializeSegment %s\n", temp.c_str());
if (elem.size()!=1 || elem["stop"] != 0) { // not for {"stop":0}
String temp;
serializeJson(elem, temp);
USER_PRINTF("deserializeSegment %s\n", temp.c_str());
}
byte id = elem["id"] | it;
if (id >= strip.getMaxSegments()) return;