forked from GerhardHoffmann/DCLibraries
		
	Fix: return value prn_getPrintResult()
This commit is contained in:
		@@ -3230,10 +3230,17 @@ uint16_t hwapi::cash_getNrCoinsInVault(void) const
 | 
			
		||||
 | 
			
		||||
uint8_t hwapi::prn_getPrintResult() const
 | 
			
		||||
{
 | 
			
		||||
    // return:  0: unknown
 | 
			
		||||
    //          1: OK - last template was printed succesful
 | 
			
		||||
    //          2: error - last template was not printed
 | 
			
		||||
    return 1;
 | 
			
		||||
    // return:  0: just printing, wait
 | 
			
		||||
    //          1: OK - last print was succesful
 | 
			
		||||
    //          2: error - not printed
 | 
			
		||||
 | 
			
		||||
    struct T_dynamicCondition myDynMachCond;
 | 
			
		||||
    sys_getDynMachineConditions(&myDynMachCond);
 | 
			
		||||
 | 
			
		||||
    return myDynMachCond.resultOfLastTemplPrint;
 | 
			
		||||
        // 0: unknown or printing in progress
 | 
			
		||||
        // 1: OK, doc was printed   2: error, doc was not printed
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
uint8_t hwapi::prn_getCurrentPrinterState() const
 | 
			
		||||
@@ -3257,6 +3264,12 @@ uint8_t hwapi::prn_getCurrentPrinterState() const
 | 
			
		||||
    lastPrinterStatus=buf[52];
 | 
			
		||||
 | 
			
		||||
    return lastPrinterStatus;
 | 
			
		||||
 | 
			
		||||
    // oder mit:
 | 
			
		||||
    //struct T_dynamicCondition myDynMachCond;
 | 
			
		||||
    //sys_getDynMachineConditions(&myDynMachCond);
 | 
			
		||||
    //myDynMachCond.lastPrinterStatus
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 21.4.23TS: change function "sendDeviceSettings()" to use this struct: "struct T_devices"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user