From 87b946b9d376d31292bf6e621c10e5855da74af0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 13 Feb 2024 21:48:53 +0100 Subject: [PATCH] fixed debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/exampleReceiver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/exampleReceiver.py b/server/exampleReceiver.py index ae4c85b..3ed1b4f 100644 --- a/server/exampleReceiver.py +++ b/server/exampleReceiver.py @@ -33,12 +33,12 @@ while True: artNet.art_pol_reply(tuple_ip) # Gets whatever the last Art-Net packet we received is artNetPacket = artNet.readPacket() - print("Packet: "+str(artNetPacket)) - print("Universe: "+str(artNetPacket.universe)) - print("Data: "+str(artNetPacket.data)) - print(" ") # Make sure we actually *have* a packet if artNetPacket is not None and artNetPacket.data is not None: + print("Packet: "+str(artNetPacket)) + print("Universe: "+str(artNetPacket.universe)) + print("Data: "+str(artNetPacket.data)) + print(" ") # Checks to see if the current packet is for the specified DMX Universe if artNetPacket.universe == artnetUniverse: # Stores the packet data array