This commit is contained in:
parent
7e3de3ca95
commit
2c0efdee5a
@ -571,17 +571,17 @@ void AcsController::modeChanged(Mode_t mode, Submode_t submode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AcsController::announceMode(bool recursive) {
|
void AcsController::announceMode(bool recursive) {
|
||||||
const char* modeStr = "UNKNOWN";
|
const char *modeStr = "UNKNOWN";
|
||||||
if(mode == HasModesIF::MODE_OFF) {
|
if (mode == HasModesIF::MODE_OFF) {
|
||||||
modeStr = "OFF";
|
modeStr = "OFF";
|
||||||
} else if(mode == HasModesIF::MODE_ON) {
|
} else if (mode == HasModesIF::MODE_ON) {
|
||||||
modeStr = "ON";
|
modeStr = "ON";
|
||||||
} else if(mode == DeviceHandlerIF::MODE_NORMAL) {
|
} else if (mode == DeviceHandlerIF::MODE_NORMAL) {
|
||||||
modeStr = "NORMAL";
|
modeStr = "NORMAL";
|
||||||
}
|
}
|
||||||
const char *submodeStr = acs::getModeStr(static_cast<acs::AcsMode>(mode));
|
const char *submodeStr = acs::getModeStr(static_cast<acs::AcsMode>(submode));
|
||||||
sif::info << "ACS controller is now in " << modeStr << " mode with " <<
|
sif::info << "ACS controller is now in " << modeStr << " mode with " << submodeStr << " submode"
|
||||||
submodeStr << " submode" << std::endl;
|
<< std::endl;
|
||||||
return ExtendedControllerBase::announceMode(recursive);
|
return ExtendedControllerBase::announceMode(recursive);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user