Workaround for CashAgent: onCashVendStopByMax()
Wait 500ms until we call hw->getInsertedAmount().
This commit is contained in:
parent
cade03b400
commit
b52de16dbc
@ -399,14 +399,8 @@ void ATBDeviceControllerPlugin::onCashPayStopByMax()
|
|||||||
// DEBUG
|
// DEBUG
|
||||||
qCritical() << "ATBDeviceControllerPlugin::onCashVendStopByMax()";
|
qCritical() << "ATBDeviceControllerPlugin::onCashVendStopByMax()";
|
||||||
|
|
||||||
uint32_t amountInt = this->hw->getInsertedAmount();
|
// we need new cash value in application...
|
||||||
|
QTimer::singleShot(500, this, SLOT(onCashPayStopedSuccess()));
|
||||||
QString amountString = QString::number(amountInt);
|
|
||||||
|
|
||||||
emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::SUCCESS,
|
|
||||||
amountString,
|
|
||||||
"",
|
|
||||||
"");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user