@@ -49,7 +49,6 @@ typedef union
49
49
{
50
50
CFE_MSG_Message_t Msg ;
51
51
uint8 bytes [CI_LAB_MAX_INGEST ];
52
- uint16 hwords [2 ];
53
52
} CI_LAB_IngestBuffer_t ;
54
53
55
54
typedef struct
@@ -112,7 +111,7 @@ void CI_Lab_AppMain(void)
112
111
CFE_ES_PerfLogExit (CI_LAB_MAIN_TASK_PERF_ID );
113
112
114
113
/* Pend on receipt of command packet -- timeout set to 500 millisecs */
115
- status = CFE_SB_RcvMsg (& SBBufPtr , CI_LAB_Global .CommandPipe , 500 );
114
+ status = CFE_SB_ReceiveBuffer (& SBBufPtr , CI_LAB_Global .CommandPipe , 500 );
116
115
117
116
CFE_ES_PerfLogEntry (CI_LAB_MAIN_TASK_PERF_ID );
118
117
@@ -378,8 +377,9 @@ void CI_LAB_ReadUpLink(void)
378
377
/* bad size, report as ingest error */
379
378
CI_LAB_Global .HkTlm .Payload .IngestErrors ++ ;
380
379
CFE_EVS_SendEvent (CI_LAB_INGEST_ERR_EID , CFE_EVS_EventType_ERROR ,
381
- "CI: L%d, cmd %0x %0x dropped, bad length=%d\n" , __LINE__ ,
382
- CI_LAB_Global .IngestBuffer .hwords [0 ], CI_LAB_Global .IngestBuffer .hwords [1 ], (int )status );
380
+ "CI: L%d, cmd %0x%0x %0x%0x dropped, bad length=%d\n" , __LINE__ ,
381
+ CI_LAB_Global .IngestBuffer .bytes [0 ], CI_LAB_Global .IngestBuffer .bytes [1 ],
382
+ CI_LAB_Global .IngestBuffer .bytes [2 ], CI_LAB_Global .IngestBuffer .bytes [3 ], (int )status );
383
383
}
384
384
else
385
385
{
@@ -396,10 +396,10 @@ void CI_LAB_ReadUpLink(void)
396
396
/* CI_LAB_VerifyCmdLength() -- Verify command packet length */
397
397
/* */
398
398
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * **/
399
- bool CI_LAB_VerifyCmdLength (CFE_MSG_Message_t * MsgPtr , CFE_MSG_Size_t ExpectedLength )
399
+ bool CI_LAB_VerifyCmdLength (CFE_MSG_Message_t * MsgPtr , size_t ExpectedLength )
400
400
{
401
401
bool result = true;
402
- CFE_MSG_Size_t ActualLength = 0 ;
402
+ size_t ActualLength = 0 ;
403
403
CFE_MSG_FcnCode_t FcnCode = 0 ;
404
404
CFE_SB_MsgId_t MsgId = CFE_SB_INVALID_MSG_ID ;
405
405
0 commit comments