DUBAI: fix percent negative
This commit is contained in:
parent
776aa8df4a
commit
2801a06668
4 changed files with 45 additions and 5 deletions
|
|
@ -376,6 +376,27 @@
|
|||
|
||||
; percent
|
||||
If ShowCountDownAsPercent = 1 Then
|
||||
|
||||
DEBUGVAR InitCNT
|
||||
If InitCNT = "" Then
|
||||
Var InitCNT = BREW_CNT
|
||||
DEBUGVAR "InitCNT Empty"
|
||||
Else
|
||||
If InitCNT = 0 Then
|
||||
|
||||
If BREW_CNT > 0 Then
|
||||
Var InitCNT = BREW_CNT
|
||||
DEBUGVAR "BREW_CNT Slow set"
|
||||
Else
|
||||
Var InitCNT = ShowCountDownBrewing
|
||||
DEBUGVAR "BREW_CNT Still not set"
|
||||
DEBUGVAR BREW_CNT
|
||||
DEBUGVAR ShowCountDownBrewing
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
Var XPercent = InitCNT - ShowCountDownBrewing
|
||||
If ShowCountDownBrewing <= 5 Then
|
||||
Var XPercent = 95
|
||||
|
|
@ -390,7 +411,7 @@
|
|||
|
||||
DEBUGVAR XPercent
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If Timeout > 540 Then
|
||||
SAVELOG "back_to_main from line > 217."
|
||||
|
|
|
|||
|
|
@ -717,6 +717,25 @@
|
|||
|
||||
; percent
|
||||
If ShowCountDownAsPercent = 1 Then
|
||||
DEBUGVAR InitCNT
|
||||
If InitCNT = "" Then
|
||||
Var InitCNT = BREW_CNT
|
||||
DEBUGVAR "InitCNT Empty"
|
||||
Else
|
||||
If InitCNT = 0 Then
|
||||
|
||||
If BREW_CNT > 0 Then
|
||||
Var InitCNT = BREW_CNT
|
||||
DEBUGVAR "BREW_CNT Slow set"
|
||||
Else
|
||||
Var InitCNT = ShowCountDownBrewing
|
||||
DEBUGVAR "BREW_CNT Still not set"
|
||||
DEBUGVAR BREW_CNT
|
||||
DEBUGVAR ShowCountDownBrewing
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var XPercent = InitCNT - ShowCountDownBrewing
|
||||
If ShowCountDownBrewing <= 5 Then
|
||||
Var XPercent = 95
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue