Skip to content

Remove CF_CmdAcc and CF_CmdRej #281

@havencarlson

Description

@havencarlson

Checklist (Please check before submitting)

  • I reviewed the Contributing Guide.
  • I reviewed the CF README.md file to see if the feature is in the major future work.
  • I performed a cursory search to see if the feature request is relevant, not redundant, nor in conflict with other tickets.

Is your feature request related to a problem? Please describe.
Inline functions CF_CmdAcc and CF_CmdRej are one-liners so they are mostly unecessary.

Describe the solution you'd like
Replace their use and remove the functions.

Additional context

CF/fsw/src/cf_cmd.h

Lines 79 to 100 in 50c6b04

/************************************************************************/
/** @brief Increment the command accepted counter.
*
* @par Assumptions, External Events, and Notes:
* None
*/
static inline void CF_CmdAcc(void)
{
++CF_AppData.hk.counters.cmd;
}
/************************************************************************/
/** @brief Increment the command rejected counter.
*
* @par Assumptions, External Events, and Notes:
* None
*
*/
static inline void CF_CmdRej(void)
{
++CF_AppData.hk.counters.err;
}

Requester Info
Haven Carlson - NASA

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions