From b52de16dbcb7f1cb13529b29030db43d62673db3 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Thu, 15 Jun 2023 18:49:59 +0200 Subject: [PATCH] Workaround for CashAgent: onCashVendStopByMax() Wait 500ms until we call hw->getInsertedAmount(). --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 9c45692..b2336da 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -399,14 +399,8 @@ void ATBDeviceControllerPlugin::onCashPayStopByMax() // DEBUG qCritical() << "ATBDeviceControllerPlugin::onCashVendStopByMax()"; - uint32_t amountInt = this->hw->getInsertedAmount(); - - QString amountString = QString::number(amountInt); - - emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::SUCCESS, - amountString, - "", - ""); + // we need new cash value in application... + QTimer::singleShot(500, this, SLOT(onCashPayStopedSuccess())); }