Workaround for 00281/Szeged: kindOfCoinChecker

This should be '1' in Szeged, however, we get value '16'
This commit is contained in:
Siegfried Siegert 2023-07-26 15:40:58 +02:00
parent ffa91a216c
commit df3a83521f
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -177,6 +177,26 @@ DeviceController::State DeviceControllerDiag::sub_componentAssessment()
if (modCond.intEe>=200) if (modCond.intEe>=200)
return DeviceController::State::E011; return DeviceController::State::E011;
// 2023-07-26: workaround for 00281/Szeged --------------------------------------------------------------
// because we need certain errors and we do get for 'kindOfCoinChecker' -> 16 !
qCritical() << "-----------diag: kindOfCoinChecker = " << devPara.kindOfCoinChecker;
qCritical() << " modCond.coinSafe = " << modCond.coinSafe;
if (devPara.kindOfCoinChecker > 0) {
if (modCond.coinSafe==201) // full
{
return DeviceController::State::E007;
}
if (modCond.coinSafe==200) // 200: kasse fehlt 201: voll 100:fast voll 1:ok
{
return DeviceController::State::E009;
}
if (modCond.coinEscrow>=200)
{
return DeviceController::State::E010;
}
}
// -----------------------------------------------------------------------------------------------
if (devPara.kindOfCoinChecker==1 || devPara.kindOfCoinChecker==2) // 0: without 1=EMP820 2=EMP900 3=currenza c² (MW) if (devPara.kindOfCoinChecker==1 || devPara.kindOfCoinChecker==2) // 0: without 1=EMP820 2=EMP900 3=currenza c² (MW)
{ {
if (modCond.coinEscrow>=200) if (modCond.coinEscrow>=200)