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
back end
=======
- main: add monitorMutex, use isPositions, add effect loop memcpy
- node manager: delay(100) before deleting a node so the loop can finish
- Physical layer, ArtnetOut, PLEDDriver: remove isPositions from loop and loopDriver (done in main)
- Lights control: add monitorMutex and monitorMillis
Copy file name to clipboardExpand all lines: src/MoonLight/Modules/ModuleLightsControl.h
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -352,31 +352,30 @@ class ModuleLightsControl : public Module {
352
352
}
353
353
354
354
#if FT_ENABLED(FT_MONITOR)
355
+
extern SemaphoreHandle_t monitorMutex; // defined in main
355
356
if (layerP.lights.header.isPositions == 2) { // send to UI
356
357
read([&](ModuleState& _state) {
357
358
if (_socket->getConnectedClients() && _state.data["monitorOn"]) {
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.header, 37); // sizeof(LightsHeader)); //sizeof(LightsHeader), nearest prime nr above 32 to avoid monitor data to be seen as header
359
360
_socket->emitEvent("monitor", (char*)layerP.lights.channelsE, MIN(layerP.lights.header.nrOfLights * 3, layerP.lights.maxChannels)); //*3 is for 3 bytes position
360
361
}
361
362
memset(layerP.lights.channelsE, 0, layerP.lights.maxChannels); // set all the channels to 0 //cleaning the positions
362
363
EXT_LOGD(ML_TAG, "positions sent to monitor (2 -> 3, #L:%d maxC:%d)", layerP.lights.header.nrOfLights, layerP.lights.maxChannels);
Copy file name to clipboardExpand all lines: src/MoonLight/Nodes/Drivers/D_ArtnetOut.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ class ArtNetOutDriver : public DriverNode {
106
106
107
107
LightsHeader* header = &layerP.lights.header;
108
108
109
-
if (header->isPositions != 0 || nrOfIPAddresses == 0) return; // don't sent if positions are sent or no IP addresses found (to do broadcast if no addresses specified...!)
109
+
if (nrOfIPAddresses == 0) return; // don't sent if no IP addresses found (to do broadcast if no addresses specified...!)
0 commit comments