this works but is kind of ugly
Some checks are pending
EIVE/eive-obsw/pipeline/head Build started...

This commit is contained in:
2023-07-06 17:23:55 +02:00
parent b7e4953126
commit 6182218813
6 changed files with 11 additions and 28 deletions

View File

@ -134,15 +134,13 @@ ReturnValue_t Tmp1075Handler::initializeLocalDataPool(localpool::DataPool &local
return returnvalue::OK;
}
void Tmp1075Handler::setModeNormal() { setMode(_MODE_TO_NORMAL); }
ReturnValue_t Tmp1075Handler::setHealth(HealthState health) {
if (health != FAULTY and health != PERMANENT_FAULTY and health != HEALTHY and
health != EXTERNAL_CONTROL) {
return returnvalue::FAILED;
}
// Required because we do not have an assembly.
if (health == FAULTY) {
if (health == FAULTY or health == PERMANENT_FAULTY) {
setMode(_MODE_SHUT_DOWN);
}
return DeviceHandlerBase::setHealth(health);