overwrite set health cmd
This commit is contained in:
parent
2bb0f530fe
commit
87e0dd7a4b
@ -197,3 +197,11 @@ void Max31865EiveHandler::setDeviceInfo(uint8_t idx_, std::string location_) {
|
||||
}
|
||||
|
||||
ReturnValue_t Max31865EiveHandler::initialize() { return DeviceHandlerBase::initialize(); }
|
||||
|
||||
ReturnValue_t Max31865EiveHandler::setHealth(HealthState health) {
|
||||
if (health != FAULTY and health != PERMANENT_FAULTY and health != HEALTHY and
|
||||
health != EXTERNAL_CONTROL) {
|
||||
return returnvalue::FAILED;
|
||||
}
|
||||
return returnvalue::OK;
|
||||
}
|
||||
|
@ -28,6 +28,7 @@ class Max31865EiveHandler : public DeviceHandlerBase {
|
||||
ReturnValue_t initializeLocalDataPool(localpool::DataPool& localDataPoolMap,
|
||||
LocalDataPoolManager& poolManager) override;
|
||||
ReturnValue_t initialize() override;
|
||||
ReturnValue_t setHealth(HealthState health) override;
|
||||
|
||||
void simpleCommand(EiveMax31855::RtdCommands cmd);
|
||||
std::array<uint8_t, 12> cmdBuf = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user