More big fixing

andrejusk/bday
Alistair MacDonald 2018-08-31 20:11:19 +01:00 committed by GitHub
parent 0d6d62797c
commit 571b0307d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ def showinfo():
info = "" info = ""
yournum = sim800.getmynumber() yournum = sim800.getmynumber()
if (yournum): if (yournum):
info += "Your Number : " + yournum + "\n" info += yournum + "\n"
yourop = sim800.currentoperator(0) yourop = sim800.currentoperator(0)
if (yourop): if (yourop):
info += "Operator : " + yourop + "\n" info += "Operator : " + yourop + "\n"
@ -97,7 +97,7 @@ def selectoperator():
sim800.setoperator(0) sim800.setoperator(0)
notice("perator selection set to automatic.", title="TiLDA Phone") notice("perator selection set to automatic.", title="TiLDA Phone")
else: else:
sim800.setoperator(1,2,selectedop) sim800.setoperator(1,2,selectedop["index"])
notice(selectedop["title"] + " set as operator.", title="TiLDA Phone") notice(selectedop["title"] + " set as operator.", title="TiLDA Phone")
menuset = [] menuset = []