v1.11.0 #243
@ -106,3 +106,23 @@ ReturnValue_t SyrlinksFdir::eventReceived(EventMessage* event) {
|
||||
}
|
||||
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);
|
||||
|
||||
private:
|
||||
ReturnValue_t eventReceived(EventMessage* event);
|
||||
ReturnValue_t eventReceived(EventMessage* event) override;
|
||||
void eventConfirmed(EventMessage* event) override;
|
||||
};
|
||||
|
||||
#endif /* MISSION_DEVICES_SYRLINKSFDIR_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user