diff --git a/src/ATBAPP/DeviceControllerDiag.cpp b/src/ATBAPP/DeviceControllerDiag.cpp index a7d546e..fab0e55 100644 --- a/src/ATBAPP/DeviceControllerDiag.cpp +++ b/src/ATBAPP/DeviceControllerDiag.cpp @@ -247,7 +247,8 @@ void DeviceControllerDiag::sub_componentAssessment() } if (modCond.coinEscrow>=200) { 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) { 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 flag_sendOperate = false; @@ -452,6 +454,10 @@ void DeviceControllerDiag::private_sendDiagEvent(DeviceController::State result) parameter = "coin escrow"; this->_isErrorState = true; break; + case DeviceController::State::W010: // coin escrow + eventClass = EVENT_CLASS::WARNING; + parameter = "coin escrow"; + break; case DeviceController::State::E011: // mem error int.ee. eventClass = EVENT_CLASS::ERROR; parameter = "mem error int.ee."; diff --git a/src/ATBAPP/DeviceControllerDiag.h b/src/ATBAPP/DeviceControllerDiag.h index 04c716d..a5dcd35 100644 --- a/src/ATBAPP/DeviceControllerDiag.h +++ b/src/ATBAPP/DeviceControllerDiag.h @@ -29,6 +29,7 @@ namespace DeviceController { E008, E009, E010, + W010, // Coin Escrow E011, E018,