printout corrections
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2023-02-13 10:03:16 +01:00
parent 7e3de3ca95
commit 2c0efdee5a
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -571,17 +571,17 @@ void AcsController::modeChanged(Mode_t mode, Submode_t submode) {
}
void AcsController::announceMode(bool recursive) {
const char* modeStr = "UNKNOWN";
if(mode == HasModesIF::MODE_OFF) {
const char *modeStr = "UNKNOWN";
if (mode == HasModesIF::MODE_OFF) {
modeStr = "OFF";
} else if(mode == HasModesIF::MODE_ON) {
} else if (mode == HasModesIF::MODE_ON) {
modeStr = "ON";
} else if(mode == DeviceHandlerIF::MODE_NORMAL) {
} else if (mode == DeviceHandlerIF::MODE_NORMAL) {
modeStr = "NORMAL";
}
const char *submodeStr = acs::getModeStr(static_cast<acs::AcsMode>(mode));
sif::info << "ACS controller is now in " << modeStr << " mode with " <<
submodeStr << " submode" << std::endl;
const char *submodeStr = acs::getModeStr(static_cast<acs::AcsMode>(submode));
sif::info << "ACS controller is now in " << modeStr << " mode with " << submodeStr << " submode"
<< std::endl;
return ExtendedControllerBase::announceMode(recursive);
}