diff --git a/server/app.py b/server/app.py index 39ecae1..69899f4 100644 --- a/server/app.py +++ b/server/app.py @@ -119,6 +119,7 @@ def mqtt_publisher(): artnetBindIp = get_eth0_ip() artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454) while True: + global TUBE_INDEX try: # Gets whatever the last Art-Net packet we received is artNetPacket = artNet.readPacket()