eive-obsw/mission/system/acs/StrFdir.cpp

15 lines
417 B
C++
Raw Normal View History

2023-03-08 18:09:50 +01:00
#include "StrFdir.h"
2023-03-24 20:50:33 +01:00
#include "mission/acs/defs.h"
2023-03-08 18:09:50 +01:00
StrFdir::StrFdir(object_id_t strObject)
: DeviceHandlerFailureIsolation(strObject, objects::NO_OBJECT) {}
ReturnValue_t StrFdir::eventReceived(EventMessage* event) {
if (event->getEvent() == acs::MEKF_INVALID_MODE_VIOLATION) {
setFaulty(event->getEvent());
return returnvalue::OK;
}
return DeviceHandlerFailureIsolation::eventReceived(event);
}