From b9f446c6790af10aadb4ded0f2b14f8dcdaf225c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Fri, 16 Feb 2024 01:40:23 +0100 Subject: [PATCH] for i in range length of artnet packet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 88167a7..7661611 100644 --- a/server/app.py +++ b/server/app.py @@ -122,7 +122,7 @@ def start_mqtt_publishers(): if artNetPacket is not None: #Checks to see if the current packet is for the specified DMX Universe dmxPacket = artNetPacket.data - for i in range(512): + for i in range(artNetPacket.length): try: # Create MQTT topic based on the universe and channel topic = f"{str(artNetPacket.universe)}/{str(i)}"