From df3a83521fdb8c81c21de16687f745fbf0e4eec4 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Wed, 26 Jul 2023 15:40:58 +0200 Subject: [PATCH] Workaround for 00281/Szeged: kindOfCoinChecker This should be '1' in Szeged, however, we get value '16' --- src/ATBAPP/DeviceControllerDiag.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/ATBAPP/DeviceControllerDiag.cpp b/src/ATBAPP/DeviceControllerDiag.cpp index fd9c1be..d622d85 100644 --- a/src/ATBAPP/DeviceControllerDiag.cpp +++ b/src/ATBAPP/DeviceControllerDiag.cpp @@ -177,6 +177,26 @@ DeviceController::State DeviceControllerDiag::sub_componentAssessment() if (modCond.intEe>=200) 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 (modCond.coinEscrow>=200)