From a06d203245559bfda750424e60f8be6856e377d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 18 Feb 2024 15:40:50 +0100 Subject: [PATCH] test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/app.py b/server/app.py index 855f018..d09c66e 100644 --- a/server/app.py +++ b/server/app.py @@ -114,9 +114,8 @@ def mqtt_publisher(ti_receiver): artnetBindIp = get_eth0_ip() artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454) while True: - if ti_receiver.poll(0): - tube_index = ti_receiver.recv() - print(tube_index) + tube_index = ti_receiver.recv() + print(tube_index) # try: # # Gets whatever the last Art-Net packet we received is # artNetPacket = artNet.readPacket()