Fixed crash on operator select cancel
parent
3c0b33282a
commit
f8102d5652
|
@ -139,6 +139,7 @@ def selectoperator():
|
|||
for op in sim800.listoperators():
|
||||
opset.append({ "title" : op[1], "index" : op[3] })
|
||||
selectedop = prompt_option(opset, text="Operator", select_text="Select", none_text="Cancel")
|
||||
if selectedop:
|
||||
if selectedop["index"]==-1:
|
||||
sim800.setoperator(0)
|
||||
notice("perator selection set to automatic.", title="TiLDA Phone")
|
||||
|
|
Loading…
Reference in New Issue