Bug fixes
parent
3fd67bc82a
commit
5a1ea3a7d4
|
@ -38,37 +38,26 @@ def playdtmf():
|
|||
while True:
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_0):
|
||||
sim800.dtmf("0")
|
||||
time.sleep(1)
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_1):
|
||||
sim800.dtmf("1")
|
||||
time.sleep(1)
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_2):
|
||||
sim800.dtmf("2")
|
||||
time.sleep(1)
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_3):
|
||||
sim800.dtmf("3")
|
||||
time.sleep(1)
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_4):
|
||||
sim800.dtmf("4")
|
||||
time.sleep(1)
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_5):
|
||||
sim800.dtmf("5")
|
||||
time.sleep(1)
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_6):
|
||||
sim800.dtmf("6")
|
||||
time.sleep(1)
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_7):
|
||||
sim800.dtmf("7")
|
||||
time.sleep(1)
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_8):
|
||||
sim800.dtmf("8")
|
||||
time.sleep(1)
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_9):
|
||||
sim800.dtmf("9")
|
||||
time.sleep(1)
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_Star):
|
||||
sim800.dtmf("*")
|
||||
time.sleep(1)
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_Hash):
|
||||
sim800.dtmf("#")
|
||||
if buttons.is_pressed(buttons.Buttons.BTN_A):
|
||||
|
@ -142,7 +131,7 @@ def selectoperator():
|
|||
if selectedop:
|
||||
if selectedop["index"]==-1:
|
||||
sim800.setoperator(0)
|
||||
notice("operator selection set to automatic.", title="TiLDA Phone")
|
||||
notice("Operator selection set to automatic.", title="TiLDA Phone")
|
||||
else:
|
||||
sim800.setoperator(1,2,selectedop["index"])
|
||||
notice(selectedop["title"] + " set as operator.", title="TiLDA Phone")
|
||||
|
|
Loading…
Reference in New Issue