From 2e0a685507fe55b5ee5e66db898abce7522712d0 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 5 Apr 2023 15:06:41 +0200 Subject: [PATCH] overwrite health corrections --- mission/system/acs/SusAssembly.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mission/system/acs/SusAssembly.cpp b/mission/system/acs/SusAssembly.cpp index 60fc21a1..8d25acdd 100644 --- a/mission/system/acs/SusAssembly.cpp +++ b/mission/system/acs/SusAssembly.cpp @@ -131,14 +131,14 @@ ReturnValue_t SusAssembly::checkAndHandleHealthStates(Mode_t commandedMode, auto checkSusGroup = [&](object_id_t devNom, object_id_t devRed) { HealthState healthNom = healthHelper.healthTable->getHealth(devNom); HealthState healthRed = healthHelper.healthTable->getHealth(devRed); - if(healthNom == PERMANENT_FAULTY and healthRed == FAULTY) { + if (healthNom == PERMANENT_FAULTY and healthRed == FAULTY) { overwriteDeviceHealth(devRed, healthRed); needsHealthOverwritten = true; - } else if(healthNom == FAULTY and healthRed == PERMANENT_FAULTY) { + } 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(devRed, healthRed); needsHealthOverwritten = true;