Skip to content

Commit

Permalink
Merge pull request #48 from avan989/add_release_table
Browse files Browse the repository at this point in the history
Fix #19, release table address
  • Loading branch information
astrogeco authored Apr 1, 2020
2 parents 24a5bdb + ceb2aa7 commit 5c70dd1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fsw/src/sample_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,14 @@ int32 SAMPLE_Process( const SAMPLE_Process_t *Msg )

SAMPLE_GetCrc(TableName);

status = CFE_TBL_ReleaseAddress(Sample_AppData.TblHandles[0]);
if (status != CFE_SUCCESS)
{
CFE_ES_WriteToSysLog("Sample App: Fail to release table address: 0x%08lx",
(unsigned long)status);
return;
}

/* Invoke a function provided by SAMPLE_LIB */
SAMPLE_Function();

Expand Down

0 comments on commit 5c70dd1

Please sign in to comment.