13 lines
403 B
C++
13 lines
403 B
C++
#include "HeaterHealthDev.h"
|
|
|
|
HeaterHealthDev::HeaterHealthDev(object_id_t setObjectId, MessageQueueId_t parentQueue)
|
|
: HealthDevice(setObjectId, parentQueue) {}
|
|
|
|
ReturnValue_t HeaterHealthDev::setHealth(HealthState health) {
|
|
// Does not make sense for a simple heater.
|
|
if (health == HealthState::NEEDS_RECOVERY) {
|
|
return returnvalue::FAILED;
|
|
}
|
|
return HealthDevice::setHealth(health);
|
|
}
|