From ad01dd1464f04e9f64edf77c203db78a2ab620ad Mon Sep 17 00:00:00 2001 From: krameler Date: Sat, 4 Jan 2020 20:31:03 +0100 Subject: [PATCH] Fixup lists and queues to accommodate 6 scales/clients --- variables.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/variables.py b/variables.py index 24c103e..128f7f1 100644 --- a/variables.py +++ b/variables.py @@ -4,29 +4,29 @@ en_log = False en_blink = False -list_scale_id = [False, False, False, False, False] -list_client_ip = ["NC", "NC", "NC", "NC", "NC"] +list_scale_id = [False, False, False, False, False, False] +list_client_ip = ["NC", "NC", "NC", "NC", "NC", "NC"] list_cell_units = ["", "", "", "", "", ""] list_scale_mom = ["", "", "", "", "", ""] port_server = 4242 queues_recv = [] -for i in range(5): +for i in range(6): queues_recv.append(queue.Queue()) queues_send = [] -for i in range(5): +for i in range(6): queues_send.append(queue.Queue()) queues_ack = [] -for i in range(5): +for i in range(6): queues_ack.append(queue.Queue()) queues_mes = [] -for i in range(5): +for i in range(6): queues_mes.append(queue.LifoQueue()) lock_file_mes = [] -for i in range(5): +for i in range(6): lock = Lock() lock_file_mes.append(lock)