Skip to content

Commit

Permalink
Fix nasa#1450, Remove duplicate status check
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Jan 23, 2023
1 parent be88a07 commit 0e88250
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions modules/evs/fsw/src/cfe_evs_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,10 @@ int32 CFE_EVS_EnableAppEventTypeCmd(const CFE_EVS_EnableAppEventTypeCmd_t *data)
else
{
EVS_EnableTypes(AppDataPtr, CmdPtr->BitMask);

EVS_SendEvent(CFE_EVS_ENAAPPEVTTYPE_EID, CFE_EVS_EventType_DEBUG,
"Enable App Event Type Command Received with AppName = %s, EventType Bit Mask = 0x%02x",
LocalName, CmdPtr->BitMask);
}
}
else if (Status == CFE_EVS_APP_NOT_REGISTERED)
Expand All @@ -1011,13 +1015,6 @@ int32 CFE_EVS_EnableAppEventTypeCmd(const CFE_EVS_EnableAppEventTypeCmd_t *data)
(long unsigned int)CFE_EVS_ENABLE_APP_EVENT_TYPE_CC);
}

if (Status == CFE_SUCCESS)
{
EVS_SendEvent(CFE_EVS_ENAAPPEVTTYPE_EID, CFE_EVS_EventType_DEBUG,
"Enable App Event Type Command Received with AppName = %s, EventType Bit Mask = 0x%02x",
LocalName, CmdPtr->BitMask);
}

return Status;
}

Expand Down Expand Up @@ -1053,6 +1050,10 @@ int32 CFE_EVS_DisableAppEventTypeCmd(const CFE_EVS_DisableAppEventTypeCmd_t *dat
else
{
EVS_DisableTypes(AppDataPtr, CmdPtr->BitMask);

EVS_SendEvent(CFE_EVS_DISAPPENTTYPE_EID, CFE_EVS_EventType_DEBUG,
"Disable App Event Type Command Received with AppName = %s, EventType Bit Mask = 0x%02x",
LocalName, (unsigned int)CmdPtr->BitMask);
}
}
else if (Status == CFE_EVS_APP_NOT_REGISTERED)
Expand All @@ -1073,13 +1074,6 @@ int32 CFE_EVS_DisableAppEventTypeCmd(const CFE_EVS_DisableAppEventTypeCmd_t *dat
(long unsigned int)CFE_EVS_DISABLE_APP_EVENT_TYPE_CC);
}

if (Status == CFE_SUCCESS)
{
EVS_SendEvent(CFE_EVS_DISAPPENTTYPE_EID, CFE_EVS_EventType_DEBUG,
"Disable App Event Type Command Received with AppName = %s, EventType Bit Mask = 0x%02x",
LocalName, (unsigned int)CmdPtr->BitMask);
}

return Status;
}

Expand Down

0 comments on commit 0e88250

Please sign in to comment.