This commit is contained in:
wanlop run 2023-12-25 21:10:29 +07:00
parent e9852fca96
commit 0265b6ddd8
2 changed files with 26 additions and 16 deletions

View file

@ -1220,33 +1220,33 @@
EndIf
If TOPPING10 = "tampping-espv2" Then
If TOPPING8 = "tampping-espv2" Then
SAVELOG " tampping-espv2 enable"
Var CustomCoffeeEnable = "True"
Var showCustomCoffee = "Enable"
var showCoffeeTamping = "Enable"
If toppingID10Default = "" Then
If toppingID8Default = "" Then
Var CustomCoffeeTampingState[1] = "PressForever"
Else
If toppingID10index1 = toppingID10Default Then
Var CurrentCoffeeTampingId = toppingID10index1
If toppingID8index1 = toppingID8Default Then
Var CurrentCoffeeTampingId = toppingID8index1
Var CustomCoffeeTampingState[0] = "PressForever"
Var CustomCoffeeTampingState[1] = "Enable"
Var CustomCoffeeTampingState[2] = "Enable"
EndIf
If toppingID10index2 = toppingID10Default Then
Var CurrentCoffeeTampingId = toppingID10index2
If toppingID8index2 = toppingID8Default Then
Var CurrentCoffeeTampingId = toppingID8index2
Var CustomCoffeeTampingState[0] = "Enable"
Var CustomCoffeeTampingState[1] = "PressForever"
Var CustomCoffeeTampingState[2] = "Enable"
EndIf
If toppingID10index3 = toppingID10Default Then
Var CurrentCoffeeTampingId = toppingID10index3
If toppingID8index3 = toppingID8Default Then
Var CurrentCoffeeTampingId = toppingID8index3
Var CustomCoffeeTampingState[0] = "Enable"
Var CustomCoffeeTampingState[1] = "Enable"
Var CustomCoffeeTampingState[2] = "PressForever"
@ -4421,7 +4421,7 @@
Var CustomCoffeeTampingState[1] = "Enable"
Var CustomCoffeeTampingState[2] = "Enable"
Var CurrentCoffeeTampingId = toppingID10index1
Var CurrentCoffeeTampingId = toppingID8index1
Function 2
@ -4444,7 +4444,7 @@
Var CustomCoffeeTampingState[1] = "PressForever"
Var CustomCoffeeTampingState[2] = "Enable"
Var CurrentCoffeeTampingId = toppingID10index2
Var CurrentCoffeeTampingId = toppingID8index2
Function 2
@ -4468,7 +4468,7 @@
Var CustomCoffeeTampingState[1] = "Enable"
Var CustomCoffeeTampingState[2] = "PressForever"
Var CurrentCoffeeTampingId = toppingID10index3
Var CurrentCoffeeTampingId = toppingID8index3
Function 2
@ -5204,16 +5204,16 @@
If showCoffeeTamping = "Enable" Then
If CustomCoffeeTampingState[0] = "PressForever" Then
Var topping10 = toppingID10index1
Var topping8 = toppingID8index1
EndIf
If CustomCoffeeTampingState[1] = "PressForever" Then
Var topping10 = toppingID10index2
Var topping8 = toppingID8index2
EndIf
If CustomCoffeeTampingState[2] = "PressForever" Then
Var topping10 = toppingID10index3
Var topping8 = toppingID8index3
EndIf
Else
Var topping10 = 0
Var topping8 = 0
EndIf
Else
If toppingID2index3 = "" Then
@ -5750,7 +5750,7 @@
EndIf
If showCoffeeTamping = "Enable" Then
If CurrentCoffeeTampingId = toppingID10Default Then
If CurrentCoffeeTampingId = toppingID8Default Then
Else
Var CustomCoffeeDefault = "false"
EndIf