other test

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-14 21:59:36 +01:00
parent 1242fa12d4
commit 4430840f71
1 changed files with 21 additions and 21 deletions

View File

@ -123,14 +123,14 @@ def start_mqtt_publishers(universe_count):
try:
while True:
try:
for universe in range(universe_count):
# for universe in range(universe_count):
universe = universe - 1
# 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:
#Checks to see if the current packet is for the specified DMX Universe
if artNetPacket.universe == universe:
if artNetPacket.universe in range(universe_count):
print(artNetPacket.universe)
dmxPacket = artNetPacket.data
try: