Skip to content

Commit

Permalink
Fix #19, Simplify HK_SendCombindHKCmd and remove stray printfs
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Jul 29, 2022
1 parent 82ce320 commit 96fcd78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions fsw/src/hk_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,13 +396,9 @@ void HK_AppPipe(const CFE_SB_Buffer_t *BufPtr)
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
void HK_SendCombinedHKCmd(const CFE_SB_Buffer_t *BufPtr)
{
CFE_SB_MsgId_t WhichCombinedPacket = CFE_SB_INVALID_MSG_ID;

HK_Send_Out_Msg_t *CmdPtr = (HK_Send_Out_Msg_t *)BufPtr;
WhichCombinedPacket = CmdPtr->OutMsgToSend;

HK_SendCombinedHkPacket(WhichCombinedPacket);

HK_SendCombinedHkPacket(CmdPtr->OutMsgToSend);
} /* end of HK_SendCombinedHKCmd() */

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Expand Down
2 changes: 0 additions & 2 deletions fsw/src/hk_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ int32 HK_ProcessNewCopyTable(hk_copy_table_entry_t *CpyTblPtr, hk_runtime_tbl_en
OuterRtEntry->InputMidSubscribed = HK_INPUTMID_NOT_SUBSCRIBED;
OuterRtEntry->DataPresent = HK_DATA_NOT_PRESENT;
}
printf("after first loop\n");

/* Loop thru the table looking for all of the SB packets that need to be built */
for (Loop1 = 0; Loop1 < HK_COPY_TABLE_ENTRIES; Loop1++)
Expand Down Expand Up @@ -494,7 +493,6 @@ int32 HK_CheckStatusOfCopyTable(void)
/* Status should only be CFE_TBL_INFO_UPDATED because we updated it above */
if (Status == CFE_TBL_INFO_UPDATED)
{
printf("Calling HK_ProcessNewCopyTable\n");
Status = HK_ProcessNewCopyTable(HK_AppData.CopyTablePtr, HK_AppData.RuntimeTablePtr);

if (Status == CFE_SUCCESS)
Expand Down

0 comments on commit 96fcd78

Please sign in to comment.