Check and set WARNINGS

This commit is contained in:
Siegfried Siegert 2023-07-25 12:56:40 +02:00
parent d868c15359
commit ffa91a216c
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -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;
}