From 2c67638c34cc7a0ec011d8989e7388fd5be28caa Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 18 Dec 2023 12:12:30 +0100 Subject: [PATCH] Add some debug output in case the dc-data-valid flag is reset to false. --- src/hwapi.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/hwapi.cpp b/src/hwapi.cpp index 62fa681..5c10889 100644 --- a/src/hwapi.cpp +++ b/src/hwapi.cpp @@ -1794,6 +1794,8 @@ void hwapi::prn_sendText(QByteArray *buf) const uint16_t nn, pp, mm, leng_byt, leng_blk, llb, freeStak; uint8_t tmp66[66]; + qCritical() << __PRETTY_FUNCTION__ << "RESET DC DATA VALID"; + epi_clearDynMachineConditions(); // 24.6.23 gpi_storeDcDataValid(0); @@ -2898,6 +2900,8 @@ bool hwapi::prn_printTemplate(uint8_t nrOftemplate) const { // return true if sending, false if cmd-stack is full + qCritical() << __PRETTY_FUNCTION__ << "RESET DC DATA VALID"; + epi_clearDynMachineConditions(); // 24.6.23 gpi_storeDcDataValid(0); @@ -3002,6 +3006,8 @@ bool hwapi::log_getVaultRecord(struct T_vaultRecord *retVR) const bool hwapi::prn_printAccountReceipt(void) const { + qCritical() << __PRETTY_FUNCTION__ << "RESET DC DATA VALID"; + epi_clearDynMachineConditions(); // 24.6.23 gpi_storeDcDataValid(0); return sendFDcmd_set(154, 0,0, 0,0,0,0); @@ -3009,6 +3015,8 @@ bool hwapi::prn_printAccountReceipt(void) const bool hwapi::prn_printTestTicket(void) const { + qCritical() << __PRETTY_FUNCTION__ << "RESET DC DATA VALID"; + // return true if sending to DC OK, false if cmd-stack is full epi_clearDynMachineConditions(); // 24.6.23 gpi_storeDcDataValid(0); @@ -3438,6 +3446,8 @@ bool hwapi::prn_printKombiticket(uint8_t nrOfKombi) const if ((nrOfKombi<1) || (nrOfKombi>8)) return false; + qCritical() << __PRETTY_FUNCTION__ << "RESET DC DATA VALID"; + epi_clearDynMachineConditions(); // 24.6.23 gpi_storeDcDataValid(0); @@ -3568,6 +3578,8 @@ bool hwapi::log_getVaultData(uint8_t *data) const // new from 1.8.23 bool hwapi::prn_printOneAccountReceipt(uint16_t accountNr) const { + qCritical() << __PRETTY_FUNCTION__ << "RESET DC DATA VALID"; + // print one out of eight stored last accounting receipts // function log_getHoldAccountNumbers() gives a list of acc-Nr. of the stored receipts epi_clearDynMachineConditions(); // 24.6.23