before merge from inter

This commit is contained in:
wanlop run 2023-10-09 14:59:58 +07:00
parent a54825ebfc
commit a5b5d4a478
11 changed files with 342 additions and 49 deletions

View file

@ -9,6 +9,7 @@
Var GetMoreStrawCount = 3
Var CountUpWhenBREW_CNT = 0
DEBUGVAR TxRef1
SAVELOG "page_brewing3.xml"
@ -809,6 +810,22 @@
EndIf
If BREW_CNT = 0 Then
If CountUpWhenBREW_CNT > 56 Then
Var CountUpWhenBREW_CNT = 0
Var drink_success_set = "-"
READ_FILE "/mnt/sdcard/coffeevending/log/drink-success" drink_success_set
DEBUGVAR drink_success_set
If drink_success_set = "1" Then
Var MachineState_Result = 1
EndIf
EndIf
Var CountUpWhenBREW_CNT = CountUpWhenBREW_CNT + 1
EndIf
If Timeout > 480 Then
SAVELOG " Timeout > 480"
Var MachineState_Result = 2