add feature SMS,SGP: WIP fullscreen
This commit is contained in:
parent
ddcb4273c5
commit
b2da614560
11 changed files with 748 additions and 6 deletions
34
xml/features/alert_sms/check_disable.ev
Normal file
34
xml/features/alert_sms/check_disable.ev
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
READ_FILE "/mnt/sdcard/coffeevending/lock_sms" EnableSMSDrinkReady
|
||||
READ_FILE "/mnt/sdcard/coffeevending/current_alert_times" AlertTime
|
||||
|
||||
If EnableSMSDrinkReady = "" Then
|
||||
; first-time?
|
||||
Var EnableSMSDrinkReady = "true"
|
||||
Else
|
||||
If EnableSMSDrinkReady = "1" Then
|
||||
Var EnableSMSDrinkReady = "false"
|
||||
Else
|
||||
Var EnableSMSDrinkReady = "true"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If AlertTime = "" Then
|
||||
Var AlertTime = 0
|
||||
EndIf
|
||||
|
||||
INT AlertTime
|
||||
|
||||
If AlertTime >= 3 Then
|
||||
|
||||
; lock-sms-feature
|
||||
WRITE_FILE "/mnt/sdcard/coffeevending/lock_sms" "1"
|
||||
Var EnableSMSDrinkReady = "false"
|
||||
|
||||
EndIf
|
||||
|
||||
;Var EnableSMSDrinkReady = "true"
|
||||
|
||||
DEBUGVAR EnableSMSDrinkReady
|
||||
DEBUGVAR LastSmsUUID
|
||||
DEBUGVAR NotifyRet
|
||||
DEBUGVAR NotifyJobError
|
||||
Loading…
Add table
Add a link
Reference in a new issue