Skip to content

Commit

Permalink
Fix #1450, Remove duplicate status check
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Oct 25, 2022
1 parent be88a07 commit 69c981c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 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

0 comments on commit 69c981c

Please sign in to comment.