diff --git a/src/hwapi.cpp b/src/hwapi.cpp index 3c60a1f..ba0208b 100644 --- a/src/hwapi.cpp +++ b/src/hwapi.cpp @@ -17,6 +17,9 @@ und hier in hwapi die entprellten Werte fuer Tueren und Kasse verwenden. Problem war: Signal "Kasse entnommen" war zu langsam -> manchmal abr nicht gesendet +14.3.24 new function bool hwapi::cash_isCollectionStarted(void) const + padding three struct to 64 byte to avoid stack overflow when using + */ #include "hwapi.h" @@ -4402,6 +4405,17 @@ uint16_t hwapi::bna_getStackerLevel(uint32_t *amountInStacker, uint16_t *countOf return anzahl; } + +// new, 14.3.24TS +bool hwapi::cash_isCollectionStarted(void) const +{ + struct T_dynamicCondition myDynMachCond; + sys_getDynMachineConditions(&myDynMachCond); + if (myDynMachCond.paymentInProgress >=2) + return true; + return false; +} + QObject const *hwapi::getAPI() { return this; }