overwrite set health cmd #589
@ -26,6 +26,7 @@ will consitute of a breaking change warranting a new major release:
|
||||
temperature for the all-ones value (0x0fff).
|
||||
- Better reply result handling for the ACS board devices.
|
||||
- ADIS1650X initial timeout handling now performed in device handler.
|
||||
- MAX31865 RTD device handler: `NEEDS_RECOVERY` health commands will be rejected now.
|
||||
|
||||
## Changed
|
||||
|
||||
|
@ -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