You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// on boards without PSRAM, heap is only 60 KB (30KB max alloc) available, need to find out how to increase the heap
65
65
// for virtual mapping mappingTable and mappingTableIndexes is used
66
-
// mappingTable is per default same size as the number of LEDs/lights (stored in lights.channels), see Physical layer, goal is also here to support 12288 LEDs on non PSRAM boards at least for non PSRAM board
66
+
// mappingTable is per default same size as the number of LEDs/lights (stored in lights.channelsE/D), see Physical layer, goal is also here to support 12288 LEDs on non PSRAM boards at least for non PSRAM board
67
67
// mappingTableIndexes is used of the mapping of effects to lights.channel is not 1:1 but 1:M
setPresetsFromFolder(); // set the right values during boot
47
47
@@ -356,9 +356,9 @@ class ModuleLightsControl : public Module {
356
356
read([&](ModuleState& _state) {
357
357
if (_socket->getConnectedClients() && _state.data["monitorOn"]) {
358
358
_socket->emitEvent("monitor", (char*)&layerP.lights.header, 37); // sizeof(LightsHeader)); //sizeof(LightsHeader), nearest prime nr above 32 to avoid monitor data to be seen as header
359
-
_socket->emitEvent("monitor", (char*)layerP.lights.channels, MIN(layerP.lights.header.nrOfLights * 3, layerP.lights.maxChannels)); //*3 is for 3 bytes position
359
+
_socket->emitEvent("monitor", (char*)layerP.lights.channelsE, MIN(layerP.lights.header.nrOfLights * 3, layerP.lights.maxChannels)); //*3 is for 3 bytes position
360
360
}
361
-
memset(layerP.lights.channels, 0, layerP.lights.maxChannels); // set all the channels to 0 //cleaning the positions
361
+
memset(layerP.lights.channelsE, 0, layerP.lights.maxChannels); // set all the channels to 0 //cleaning the positions
362
362
EXT_LOGD(ML_TAG, "positions sent to monitor (2 -> 3, #L:%d maxC:%d)", layerP.lights.header.nrOfLights, layerP.lights.maxChannels);
363
363
layerP.lights.header.isPositions = 3;
364
364
});
@@ -372,7 +372,7 @@ class ModuleLightsControl : public Module {
0 commit comments