diff --git a/fsw/src/sample_app.c b/fsw/src/sample_app.c index 2961237..6684f0b 100644 --- a/fsw/src/sample_app.c +++ b/fsw/src/sample_app.c @@ -112,13 +112,10 @@ int32 SAMPLE_APP_Init(void) { int32 status; - SAMPLE_APP_Data.RunStatus = CFE_ES_RunStatus_APP_RUN; + /* Zero out the global data structure */ + memset(&SAMPLE_APP_Data, 0, sizeof(SAMPLE_APP_Data)); - /* - ** Initialize app command execution counters - */ - SAMPLE_APP_Data.CmdCounter = 0; - SAMPLE_APP_Data.ErrCounter = 0; + SAMPLE_APP_Data.RunStatus = CFE_ES_RunStatus_APP_RUN; /* ** Initialize app configuration data