From b10e597e59e5dda05ae03d5c6aa1af5a03e9ba25 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Thu, 15 Jun 2023 14:18:32 +0200 Subject: [PATCH] Workaround for CashAgent: send 'vend_failed()' on program start --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 9ad08b3..b0214b7 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -59,6 +59,9 @@ PLUGIN_STATE ATBDeviceControllerPlugin::initDCPlugin(QObject *healthEventReceive hw->rtc_setDateTime(); + // this is necessary to init the CashAgentLib (!) + hw->vend_failed(); + // text encoding for printer this->codec = QTextCodec::codecForName(printerEncoding);