Skip to content

Commit

Permalink
Fix #299, Clarify event text for commands that initiate actions
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Aug 2, 2022
1 parent 557c132 commit eb01a59
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fsw/src/cf_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ void CF_CmdTxFile(CFE_SB_Buffer_t *msg)
if (CF_CFDP_TxFile(tx->src_filename, tx->dst_filename, tx->cfdp_class, tx->keep, tx->chan_num, tx->priority,
tx->dest_id) == CFE_SUCCESS)
{
CFE_EVS_SendEvent(CF_EID_INF_CMD_TX_FILE, CFE_EVS_EventType_INFORMATION, "CF: file transfer successful");
CFE_EVS_SendEvent(CF_EID_INF_CMD_TX_FILE, CFE_EVS_EventType_INFORMATION, "CF: file transfer successfully initiated");
++CF_AppData.hk.counters.cmd;
}
else
{
CFE_EVS_SendEvent(CF_EID_ERR_CMD_TX_FILE, CFE_EVS_EventType_ERROR, "CF: file transfer failed");
CFE_EVS_SendEvent(CF_EID_ERR_CMD_TX_FILE, CFE_EVS_EventType_ERROR, "CF: file transfer initiation failed");
++CF_AppData.hk.counters.err;
}
}
Expand Down Expand Up @@ -209,12 +209,12 @@ void CF_CmdPlaybackDir(CFE_SB_Buffer_t *msg)
tx->dest_id) == CFE_SUCCESS)
{
CFE_EVS_SendEvent(CF_EID_INF_CMD_PLAYBACK_DIR, CFE_EVS_EventType_INFORMATION,
"CF: directory playback successful");
"CF: directory playback initiation successful");
++CF_AppData.hk.counters.cmd;
}
else
{
CFE_EVS_SendEvent(CF_EID_ERR_CMD_PLAYBACK_DIR, CFE_EVS_EventType_ERROR, "CF: directory playback cmd failed");
CFE_EVS_SendEvent(CF_EID_ERR_CMD_PLAYBACK_DIR, CFE_EVS_EventType_ERROR, "CF: directory playback initiation failed");
++CF_AppData.hk.counters.err;
}
}
Expand Down Expand Up @@ -512,7 +512,7 @@ void CF_CmdCancel(CFE_SB_Buffer_t *msg)
{
if (CF_TsnChanAction((CF_TransactionCmd_t *)msg, "cancel", CF_CmdCancel_Txn, NULL) > 0)
{
CFE_EVS_SendEvent(CF_EID_INF_CMD_CANCEL, CFE_EVS_EventType_INFORMATION, "CF: cancel successful");
CFE_EVS_SendEvent(CF_EID_INF_CMD_CANCEL, CFE_EVS_EventType_INFORMATION, "CF: cancel transaction successfully initiated");
++CF_AppData.hk.counters.cmd;
}
else
Expand Down

0 comments on commit eb01a59

Please sign in to comment.