From 6f00d5b356d227734068f38aba1e09bba7a54ebc Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Tue, 23 May 2023 14:29:24 +0200 Subject: [PATCH] Workaround: do not use printer signals... ... this signals are sent presumably after printing first template. As we print currently 3 templates and we use this signals to create an event in main application this lead to an error: Subsequent DCPlugin operations failed sometimes because DC needs a time gap between to operations. --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 3adc414..0a1581c 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -12,8 +12,8 @@ ATBDeviceControllerPlugin::ATBDeviceControllerPlugin(QObject *parent) : QObject( this->hw = new hwapi(); - connect(dynamic_cast(hw), SIGNAL(hwapi_templatePrintFinished_OK()), this, SLOT(onPrintFinishedOK())); - connect(dynamic_cast(hw), SIGNAL(hwapi_templatePrintFinished_Err()), this, SLOT(onPrintFinishedERR())); + //connect(dynamic_cast(hw), SIGNAL(hwapi_templatePrintFinished_OK()), this, SLOT(onPrintFinishedOK())); + //connect(dynamic_cast(hw), SIGNAL(hwapi_templatePrintFinished_Err()), this, SLOT(onPrintFinishedERR())); connect(dynamic_cast(hw), SIGNAL(hwapi_gotNewCoin()), this, SLOT(onCashGotCoin())); connect(dynamic_cast(hw), SIGNAL(hwapi_payStopByMax()), this, SLOT(onCashPayStopByMax()));