From 9f67bac60ca1e0fb649f7e72d3ec9756b8309478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Wed, 14 Feb 2024 22:15:47 +0100 Subject: [PATCH] added time sleeper 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, 2 insertions(+) diff --git a/server/app.py b/server/app.py index 0a5cc6e..19b82ca 100644 --- a/server/app.py +++ b/server/app.py @@ -6,6 +6,7 @@ import threading import python_artnet as Artnet import os from getmac import get_mac_address +import time app = Flask(__name__) @@ -136,6 +137,7 @@ def start_mqtt_publishers(universe_count): mqtt_client.publish(topic, str(dmxPacket[i-1])) except KeyboardInterrupt: break + time.sleep(float(0.0001)) except Exception as e: print(e)