move var down

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-13 14:59:57 +01:00
parent c8d3cbd5db
commit 995a00eba6
1 changed files with 1 additions and 1 deletions

View File

@ -117,11 +117,11 @@ def mqtt_publisher(universe, artnetPacket):
universe = universe-1
mqtt_client = connect_mqtt()
try:
dmx_values = artnetPacket.data
while True:
print(str(artnetPacket))
if artnetPacket is not None and artnetPacket.data is not None:
if artnetPacket.universe == universe:
dmx_values = artnetPacket.data
if dmx_values is not None:
dmxPacket = artnetPacket.data
for i in dmx_values: