removed sleeper

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-16 00:32:27 +01:00
parent 74ac2e589f
commit 227b5d2b8d
1 changed files with 2 additions and 3 deletions

View File

@ -119,7 +119,7 @@ def start_mqtt_publishers():
# Gets whatever the last Art-Net packet we received is
artNetPacket = artNet.readPacket()
# Make sure we actually *have* a packet
if artNetPacket is not None and artNetPacket.data is not None:
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):
@ -130,8 +130,7 @@ def start_mqtt_publishers():
# Publish the DMX value to the MQTT topic
mqtt_client.publish(topic, str(dmxPacket[i-1]))
except KeyboardInterrupt:
break
time.sleep(0.01)
break
except Exception as e:
print(e)
except KeyboardInterrupt: