Skip to content

Commit

Permalink
Fix #68, remove references to CCSDS types
Browse files Browse the repository at this point in the history
Applications should only use types provided by CFE_SB.
  • Loading branch information
jphickey committed May 28, 2020
1 parent 4b6d54f commit 3e46de8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions fsw/src/sample_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void SAMPLE_ProcessCommandPacket( CFE_SB_MsgPtr_t Msg )
break;

case SAMPLE_APP_SEND_HK_MID:
SAMPLE_ReportHousekeeping((CCSDS_CommandPacket_t *)Msg);
SAMPLE_ReportHousekeeping((CFE_SB_CmdHdr_t *)Msg);
break;

default:
Expand Down Expand Up @@ -348,7 +348,7 @@ void SAMPLE_ProcessGroundCommand( CFE_SB_MsgPtr_t Msg )
/* telemetry, packetize it and send it to the housekeeping task via */
/* the software bus */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
int32 SAMPLE_ReportHousekeeping( const CCSDS_CommandPacket_t *Msg )
int32 SAMPLE_ReportHousekeeping( const CFE_SB_CmdHdr_t *Msg )
{
int i;

Expand Down
2 changes: 1 addition & 1 deletion fsw/src/sample_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void SAMPLE_AppMain(void);
int32 SAMPLE_AppInit(void);
void SAMPLE_ProcessCommandPacket(CFE_SB_MsgPtr_t Msg);
void SAMPLE_ProcessGroundCommand(CFE_SB_MsgPtr_t Msg);
int32 SAMPLE_ReportHousekeeping(const CCSDS_CommandPacket_t *Msg);
int32 SAMPLE_ReportHousekeeping(const CFE_SB_CmdHdr_t *Msg);
int32 SAMPLE_ResetCounters(const SAMPLE_ResetCounters_t *Msg);
int32 SAMPLE_Process(const SAMPLE_Process_t *Msg);
int32 SAMPLE_Noop(const SAMPLE_Noop_t *Msg);
Expand Down
8 changes: 4 additions & 4 deletions unit-test/coveragetest/coveragetest_sample_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void Test_SAMPLE_ProcessCommandPacket(void)
union
{
CFE_SB_Msg_t Base;
CCSDS_CommandPacket_t Cmd;
CFE_SB_CmdHdr_t Cmd;
SAMPLE_Noop_t Noop;
SAMPLE_ResetCounters_t Reset;
SAMPLE_Process_t Process;
Expand Down Expand Up @@ -302,7 +302,7 @@ void Test_SAMPLE_ProcessGroundCommand(void)
union
{
CFE_SB_Msg_t Base;
CCSDS_CommandPacket_t Cmd;
CFE_SB_CmdHdr_t Cmd;
SAMPLE_Noop_t Noop;
SAMPLE_ResetCounters_t Reset;
SAMPLE_Process_t Process;
Expand Down Expand Up @@ -361,9 +361,9 @@ void Test_SAMPLE_ReportHousekeeping(void)
{
/*
* Test Case For:
* void SAMPLE_ReportHousekeeping( const CCSDS_CommandPacket_t *Msg )
* void SAMPLE_ReportHousekeeping( const CFE_SB_CmdHdr_t *Msg )
*/
CCSDS_CommandPacket_t CmdMsg;
CFE_SB_CmdHdr_t CmdMsg;
SAMPLE_HkTlm_t HkTelemetryMsg;

memset(&CmdMsg, 0, sizeof(CmdMsg));
Expand Down

0 comments on commit 3e46de8

Please sign in to comment.