forked from GerhardHoffmann/DCLibraries
		
	Added cash_isCollectionStarted()
This commit is contained in:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user