copy and paste fix

This commit is contained in:
Robin Müller 2023-04-05 16:58:32 +02:00
parent 36d5f8fd31
commit 0a68b50ad7
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -291,13 +291,13 @@ ReturnValue_t AcsBoardAssembly::checkAndHandleHealthStates(Mode_t commandedMode,
overwriteDeviceHealth(o0, h0); overwriteDeviceHealth(o0, h0);
} }
if (h1 == FAULTY) { if (h1 == FAULTY) {
overwriteDeviceHealth(o0, h0); overwriteDeviceHealth(o1, h1);
} }
if (h2 == FAULTY) { if (h2 == FAULTY) {
overwriteDeviceHealth(o0, h0); overwriteDeviceHealth(o2, h2);
} }
if (h3 == FAULTY) { if (h3 == FAULTY) {
overwriteDeviceHealth(o0, h0); overwriteDeviceHealth(o3, h3);
} }
} else { } else {
// All permanent faulty, so set all to EXTERNAL_CONTROL // All permanent faulty, so set all to EXTERNAL_CONTROL