UAE_DUBAI: add percent calc
This commit is contained in:
parent
c6cb5b1b32
commit
4c808f86c4
2 changed files with 35 additions and 0 deletions
|
|
@ -373,6 +373,23 @@
|
|||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
; percent
|
||||
If ShowCountDownAsPercent = 1 Then
|
||||
Var XPercent = InitCNT - ShowCountDownBrewing
|
||||
If ShowCountDownBrewing <= 5 Then
|
||||
Var XPercent = 95
|
||||
If SetPercent100 = 1 Then
|
||||
Var XPercent = 100
|
||||
EndIf
|
||||
Else
|
||||
Var XPercent = XPercent * 100
|
||||
DEBUGVAR XPercent
|
||||
Var XPercent = XPercent / InitCNT
|
||||
EndIf
|
||||
|
||||
DEBUGVAR XPercent
|
||||
EndIf
|
||||
|
||||
|
||||
If Timeout > 540 Then
|
||||
SAVELOG "back_to_main from line > 217."
|
||||
|
|
|
|||
|
|
@ -641,6 +641,7 @@
|
|||
|
||||
If MOVE_CUP_TO_DOOR = "true" Then
|
||||
Var MOVE_CUP_TO_DOOR = "false"
|
||||
Var SetPercent100 = 1
|
||||
EndIf
|
||||
|
||||
If BREW_COUNT_DOWN_FROM_APP = "on" Then
|
||||
|
|
@ -705,6 +706,23 @@
|
|||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
; percent
|
||||
If ShowCountDownAsPercent = 1 Then
|
||||
Var XPercent = InitCNT - ShowCountDownBrewing
|
||||
If ShowCountDownBrewing <= 5 Then
|
||||
Var XPercent = 95
|
||||
If SetPercent100 = 1 Then
|
||||
Var XPercent = 100
|
||||
EndIf
|
||||
Else
|
||||
Var XPercent = XPercent * 100
|
||||
DEBUGVAR XPercent
|
||||
Var XPercent = XPercent / InitCNT
|
||||
EndIf
|
||||
|
||||
DEBUGVAR XPercent
|
||||
EndIf
|
||||
|
||||
|
||||
If Timeout > 540 Then
|
||||
SAVELOG "back_to_main from line > 217."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue