diff --git a/server/app.py b/server/app.py index 6a5a82e..2f7d442 100644 --- a/server/app.py +++ b/server/app.py @@ -128,7 +128,6 @@ def mqtt_publisher(ti_receiver): print("Receiving of artnet packet took: "+str(end-start)) if artNetPacket is not None: if tube_index is not None: - start = time.time() for index_row in tube_index: if artNetPacket.universe == int(index_row[1]): dmx_address = int(index_row[2]) @@ -143,8 +142,6 @@ def mqtt_publisher(ti_receiver): result_str = [str(color) for color in colors] result = str(result_str) mqtt_client.publish(p1_topic, result) - end = time.time() - print("Sending out to all tubes took: "+str(end-start)) except KeyboardInterrupt: artNet.close() def tube_index_updater(ti_queue):