special handling for sus groups
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
parent
65c231e92d
commit
b050047d9a
@ -131,7 +131,13 @@ ReturnValue_t SusAssembly::checkAndHandleHealthStates(Mode_t commandedMode,
|
|||||||
auto checkSusGroup = [&](object_id_t devNom, object_id_t devRed) {
|
auto checkSusGroup = [&](object_id_t devNom, object_id_t devRed) {
|
||||||
HealthState healthNom = healthHelper.healthTable->getHealth(devNom);
|
HealthState healthNom = healthHelper.healthTable->getHealth(devNom);
|
||||||
HealthState healthRed = healthHelper.healthTable->getHealth(devRed);
|
HealthState healthRed = healthHelper.healthTable->getHealth(devRed);
|
||||||
if ((healthNom == FAULTY or healthNom == PERMANENT_FAULTY) and
|
if(healthNom == PERMANENT_FAULTY and healthRed == FAULTY) {
|
||||||
|
overwriteDeviceHealth(devRed, healthRed);
|
||||||
|
needsHealthOverwritten = true;
|
||||||
|
} else if(healthNom == FAULTY and healthRed == PERMANENT_FAULTY) {
|
||||||
|
overwriteDeviceHealth(devNom, healthNom);
|
||||||
|
needsHealthOverwritten = true;
|
||||||
|
} else if ((healthNom == FAULTY or healthNom == PERMANENT_FAULTY) and
|
||||||
(healthRed == FAULTY or healthRed == PERMANENT_FAULTY)) {
|
(healthRed == FAULTY or healthRed == PERMANENT_FAULTY)) {
|
||||||
overwriteDeviceHealth(devNom, healthNom);
|
overwriteDeviceHealth(devNom, healthNom);
|
||||||
overwriteDeviceHealth(devRed, healthRed);
|
overwriteDeviceHealth(devRed, healthRed);
|
||||||
|
Loading…
Reference in New Issue
Block a user