Being a bit more verbose when autoselect

parent e770b9b3
...@@ -439,15 +439,19 @@ while not EXIT: ...@@ -439,15 +439,19 @@ while not EXIT:
print_msg("\n ** FUCK-O-MATIK Mode Selected ** \n") print_msg("\n ** FUCK-O-MATIK Mode Selected ** \n")
selected=False selected=False
for net in nets.keys(): for net in nets.keys():
print_msg("\n + trying: "+str(nets[net]['Name']))
if nets[net]['conf']['saved']: if nets[net]['conf']['saved']:
if not selected: if not selected:
selected=nets[net] selected=nets[net]
else: else:
if int(selected['conf']['prio']) > int(net['conf']['prio']): if int(selected['conf']['prio']) > int(nets[net]['conf']['prio']):
selected=nets[net] selected=nets[net]
elif int(selected['conf']['prio']) == int(net['conf']['prio']): elif int(selected['conf']['prio']) == int(nets[net]['conf']['prio']):
if int(selected['Quality']) < int(net['Quality']): if int(selected['Quality']) < int(nets[net]['Quality']):
selected=nets[net] selected=nets[net]
if selected:
print_msg("\n - selected: "+str(selected['Name']))
SM="connect" SM="connect"
elif SM=="connect": elif SM=="connect":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment