From 8163be502217db83835950319d4244333138e5a3 Mon Sep 17 00:00:00 2001 From: Thomas Sax Date: Fri, 8 Dec 2023 12:02:25 +0100 Subject: [PATCH] Fix: correct order of steps in cash_paymentProcessing (NOTE: not compatible with Szeged at the moment. This will require an update of the firmware device controller). --- src/runProc.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/runProc.cpp b/src/runProc.cpp index 51b7ce6..c5dd1a2 100644 --- a/src/runProc.cpp +++ b/src/runProc.cpp @@ -205,11 +205,11 @@ uint8_t T_runProc::cash_paymentProcessing(void) emit runProc_coinCollectionAborted(); //sendFDcmd_set(156, 0,0, 2,0,0,0); // cancel payment } - return 10; // error cannot start - } + }*/ - if (empState>=10 && empState<=12 && (payInProg==1 || payInProg==2) ) +// if (empState>=10 && empState<=12 && (payInProg==1 || payInProg==2) ) // Szeged + if ( payInProg==2 ) //8.12.23 { // coin acceptance is active now: if (hwapi_paymentStarted==1) // && (( payInProg==0) || ( payInProg>5))) //16.6.23 @@ -242,7 +242,8 @@ uint8_t T_runProc::cash_paymentProcessing(void) } else - if (payInProg==3) // user pressed "Next/Continue", keep coin + //if (payInProg==3) // user pressed "Next/Continue", keep coin + if (payInProg==4) // user pressed "Next/Continue", keep coin since nov2023 { hwapi_paymentStarted++; collActiv=3; @@ -250,7 +251,8 @@ uint8_t T_runProc::cash_paymentProcessing(void) emit runProc_payStopByPushbutton(); } else - if (payInProg==4) // max achieved, keep coins + //if (payInProg==4) // max achieved, keep coins + if (payInProg==5) // max achieved, keep coins since nov2023 { hwapi_paymentStarted++; collActiv=4; @@ -258,7 +260,8 @@ uint8_t T_runProc::cash_paymentProcessing(void) emit runProc_payStopByMax(); } else - if (payInProg==5) // escrow full, keep coins + //if (payInProg==5) // escrow full, keep coins + if (payInProg==6) // escrow full, keep coins since nov2023 { hwapi_paymentStarted++; collActiv=5; @@ -281,7 +284,8 @@ uint8_t T_runProc::cash_paymentProcessing(void) { // coin collection finished, but coins kept until printing done collActiv=2; - if (payInProg==6) // coins encashed + //if (payInProg==6) // coins encashed + if (payInProg==7) // coins encashed since nov2023 { collActiv=6; hwapi_paymentStarted++; @@ -289,7 +293,8 @@ uint8_t T_runProc::cash_paymentProcessing(void) emit runProc_coinProcessJustStopped(); } else - if (payInProg==7) // coins returned, printing failed + //if (payInProg==7) // coins returned, printing failed + if (payInProg==0) // coins returned, printing failed since nov2023 { collActiv=7; hwapi_paymentStarted++;