override event confirmed as well
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
parent
7e230b64ea
commit
b97604d7d2
@ -106,3 +106,23 @@ ReturnValue_t SyrlinksFdir::eventReceived(EventMessage* event) {
|
|||||||
}
|
}
|
||||||
return RETURN_OK;
|
return RETURN_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SyrlinksFdir::eventConfirmed(EventMessage* event) {
|
||||||
|
switch (event->getEvent()) {
|
||||||
|
case DeviceHandlerIF::DEVICE_SENDING_COMMAND_FAILED:
|
||||||
|
case DeviceHandlerIF::DEVICE_REQUESTING_REPLY_FAILED:
|
||||||
|
case DeviceHandlerIF::DEVICE_MISSED_REPLY:
|
||||||
|
if (missedReplyCount.incrementAndCheck()) {
|
||||||
|
// handleRecovery(event->getEvent());
|
||||||
|
triggerEvent(syrlinks::FDIR_REACTION_IGNORED, event->getEvent(), 0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case PowerSwitchIF::SWITCH_WENT_OFF:
|
||||||
|
// This means the switch went off only for one device.
|
||||||
|
// handleRecovery(event->getEvent());
|
||||||
|
triggerEvent(syrlinks::FDIR_REACTION_IGNORED, event->getEvent(), 0);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -8,7 +8,8 @@ class SyrlinksFdir : public DeviceHandlerFailureIsolation {
|
|||||||
SyrlinksFdir(object_id_t syrlinksId);
|
SyrlinksFdir(object_id_t syrlinksId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ReturnValue_t eventReceived(EventMessage* event);
|
ReturnValue_t eventReceived(EventMessage* event) override;
|
||||||
|
void eventConfirmed(EventMessage* event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* MISSION_DEVICES_SYRLINKSFDIR_H_ */
|
#endif /* MISSION_DEVICES_SYRLINKSFDIR_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user