made tube_index tuple when received

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-18 15:46:47 +01:00
parent 88ae6c1cb2
commit bb9f5c8f2a
1 changed files with 1 additions and 2 deletions

View File

@ -116,12 +116,11 @@ def mqtt_publisher(ti_receiver):
artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454)
while True:
try:
tube_index = ti_receiver.recv()
tube_index = tuple(ti_receiver.recv())
except:
tube_index = tube_index_old
tube_index_old = None
print(tube_index)
try:
# Gets whatever the last Art-Net packet we received is
artNetPacket = artNet.readPacket()