From 995a00eba6b6f548f51413084168b9f6244a5814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 13 Feb 2024 14:59:57 +0100 Subject: [PATCH] move var down 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 e35c95c..5a5857f 100644 --- a/server/app.py +++ b/server/app.py @@ -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: