UAE_DUBAI: add percent calc

This commit is contained in:
Pakin 2025-01-14 17:24:36 +07:00
parent c6cb5b1b32
commit 4c808f86c4
2 changed files with 35 additions and 0 deletions

View file

@ -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."