Skip to content

Commit

Permalink
Merge pull request #464 from tandharia/fix-462-undefined-runstatus
Browse files Browse the repository at this point in the history
Fix #462, Setting status after memset
  • Loading branch information
RichLandau authored Oct 30, 2024
2 parents f7b1f89 + 15d6b69 commit ba12bc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fsw/src/cf_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ CFE_Status_t CF_AppInit(void)
const CFE_SB_MsgId_Atom_t MID_VALUES[] = {CF_CMD_MID, CF_SEND_HK_MID, CF_WAKE_UP_MID};
uint32 i;

CF_AppData.RunStatus = CFE_ES_RunStatus_APP_RUN;

/* Zero-out global data structure */
memset(&CF_AppData, 0, sizeof(CF_AppData));

CF_AppData.RunStatus = CFE_ES_RunStatus_APP_RUN;

CFE_MSG_Init(CFE_MSG_PTR(CF_AppData.hk.TelemetryHeader), CFE_SB_ValueToMsgId(CF_HK_TLM_MID), sizeof(CF_AppData.hk));

status = CFE_EVS_Register(NULL, 0, CFE_EVS_EventFilter_BINARY);
Expand Down

0 comments on commit ba12bc1

Please sign in to comment.