for i in range length of artnet packet

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-16 01:40:23 +01:00
parent a4ec98b6f0
commit b9f446c679
1 changed files with 1 additions and 1 deletions

View File

@ -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)}"