File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -430,13 +430,22 @@ void SAMPLE_ResetCounters( const SAMPLE_ResetCounters_t *Msg )
430430/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
431431void SAMPLE_ProcessCC ( const SAMPLE_Process_t * Msg )
432432{
433+ int32 status ;
433434 SampleTable_t * TblPtr ;
434435 const char * TableName = "SAMPLE_APP.SampleTable" ;
435436
436437 /* Sample Use of Table */
437- CFE_TBL_GetAddress ((void * )& TblPtr ,
438+
439+ status = CFE_TBL_GetAddress ((void * )& TblPtr ,
438440 Sample_AppData .TblHandles [0 ]);
439441
442+ if (status != CFE_SUCCESS )
443+ {
444+ CFE_ES_WriteToSysLog ("Sample App: Fail to get table address: 0x%08lx" ,
445+ (unsigned long )status );
446+ return ;
447+ }
448+
440449 CFE_ES_WriteToSysLog ("Sample App: Table Value 1: %d Value 2: %d" ,
441450 TblPtr -> Int1 ,
442451 TblPtr -> Int2 );
You can’t perform that action at this time.
0 commit comments