From ffa91a216c32fdd5c2114888b95d487cf9aecda1 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Tue, 25 Jul 2023 12:56:40 +0200 Subject: [PATCH] Check and set WARNINGS --- src/ATBAPP/DeviceControllerDiag.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ATBAPP/DeviceControllerDiag.cpp b/src/ATBAPP/DeviceControllerDiag.cpp index c5bca39..fd9c1be 100644 --- a/src/ATBAPP/DeviceControllerDiag.cpp +++ b/src/ATBAPP/DeviceControllerDiag.cpp @@ -241,7 +241,14 @@ DeviceController::State DeviceControllerDiag::sub_componentAssessment() return DeviceController::State::E004; // check for warnings - + if (modCond.printer>=100 && modCond.printer<200) + return DeviceController::State::W001; + if (modCond.coinSafe>=100 && modCond.coinSafe<200) + return DeviceController::State::W002; + if (modCond.voltage>=100 && modCond.voltage<200) + return DeviceController::State::W003; + if (modCond.temper>=100 && modCond.temper<200) + return DeviceController::State::W004; return DeviceController::State::O000; }