Workaround for CashAgent: onCashVendStopByMax()

Wait 500ms until we call hw->getInsertedAmount().
This commit is contained in:
Siegfried Siegert 2023-06-15 18:49:59 +02:00
parent cade03b400
commit b52de16dbc
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -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()));
}