CoinEscrow error is considered a warning (W010)

This commit is contained in:
Siegfried Siegert 2024-05-17 14:08:07 +02:00
parent 5a999a0494
commit 7b25f86d6b
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03
2 changed files with 9 additions and 2 deletions

View File

@ -247,7 +247,8 @@ void DeviceControllerDiag::sub_componentAssessment()
} }
if (modCond.coinEscrow>=200) { if (modCond.coinEscrow>=200) {
flag_sendOperate = false; flag_sendOperate = false;
this->private_sendDiagEvent(DeviceController::State::E010); // coinEscrow>200 is considered a warning:
this->private_sendDiagEvent(DeviceController::State::W010);
} }
} }
// ----------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------
@ -269,7 +270,8 @@ void DeviceControllerDiag::sub_componentAssessment()
{ {
if (modCond.coinEscrow>=200) { if (modCond.coinEscrow>=200) {
flag_sendOperate = false; flag_sendOperate = false;
this->private_sendDiagEvent(DeviceController::State::E010); // coinEscrow>200 is considered a warning:
this->private_sendDiagEvent(DeviceController::State::W010);
} }
if (modCond.coinSafe==201) { // full if (modCond.coinSafe==201) { // full
flag_sendOperate = false; flag_sendOperate = false;
@ -452,6 +454,10 @@ void DeviceControllerDiag::private_sendDiagEvent(DeviceController::State result)
parameter = "coin escrow"; parameter = "coin escrow";
this->_isErrorState = true; this->_isErrorState = true;
break; break;
case DeviceController::State::W010: // coin escrow
eventClass = EVENT_CLASS::WARNING;
parameter = "coin escrow";
break;
case DeviceController::State::E011: // mem error int.ee. case DeviceController::State::E011: // mem error int.ee.
eventClass = EVENT_CLASS::ERROR; eventClass = EVENT_CLASS::ERROR;
parameter = "mem error int.ee."; parameter = "mem error int.ee.";

View File

@ -29,6 +29,7 @@ namespace DeviceController {
E008, E008,
E009, E009,
E010, E010,
W010, // Coin Escrow
E011, E011,
E018, E018,