Skip to content

Commit

Permalink
Fixup lists and queues to accommodate 6 scales/clients
Browse files Browse the repository at this point in the history
  • Loading branch information
krameler committed Jan 8, 2020
1 parent bc0cf7a commit ad01dd1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit ad01dd1

Please sign in to comment.