From 1fdbf3b9cada2a036e6db71f228fdd66c3247481 Mon Sep 17 00:00:00 2001 From: Thomas Sax Date: Fri, 8 Dec 2023 11:58:55 +0100 Subject: [PATCH] Minor: add some comments. --- src/runProc.cpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/runProc.cpp b/src/runProc.cpp index 8340f8c..51b7ce6 100644 --- a/src/runProc.cpp +++ b/src/runProc.cpp @@ -2,7 +2,6 @@ #include #include "controlBus.h" #include "dcBL.h" -#include "interfaces.h" static uint32_t hwapi_lastStartAmount; static uint32_t hwapi_lastTotalAmount; @@ -166,6 +165,7 @@ uint8_t T_runProc::cash_paymentProcessing(void) sub_getDynMachineConditions(&myDynMachCond); payInProg= myDynMachCond.paymentInProgress; + // Version Szeged: aug2023 // 0: stopped by timeout // 1: running 2: wait4lastCoin // 3: payment stopped manually, coins in Escrow @@ -175,9 +175,26 @@ uint8_t T_runProc::cash_paymentProcessing(void) // 7: coins returned 2 cases: due to cancel-button or printer-error // 8: CoinChecker or MDB on Error + // since Schoenau with bill and changer, nov2023 + //0 = no payment + //will be set to 1 by cash_startCollection() + //neu 1: wait for devices getting ready for payment + //2 = payment, + //3 = wait for last coin/bill + //4 = Bezahlvorgang manuell beendet + //5 = payment stopped autom, amount collected, coins in Escrow + //6 = Bezahlvorgang beendet weil ZK voll + //4,5,6: payment done, keep on polling, wait for cash or return command + //7 = encash collected money from coin escrow into cash box + //8 = return "amountToReturn", can be complete inserted amount or only overpayment + //9 = wait for changer result + //10= print refund receipt with "amountToReturn" + + // qCritical() << "emitting signal payCancelled"; // emit runProc_payCancelled(); - + /* + // gabs bei Szeged, jetzt nicht mehr: if (payInProg==8) { // coin checker faulty, cannot start