Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #283, pass correct parameter in Abandon cmd function #284

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

havencarlson
Copy link
Contributor

Checklist (Please check before submitting)

Describe the contribution
Fix #283, CF_CmdCancel_Txn was being passed to CF_TsnChanAction() instead of CF_CmdAbandon_Txn

Testing performed
Ran unit tests

Expected behavior changes
When the abandon command is called, it will run CF_CmdAbandon_Txn

System(s) tested on

  • OS:Ubuntu 18.04

Contributor Info - All information REQUIRED for consideration of pull request
Haven Carlson - NASA

@havencarlson havencarlson added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jul 20, 2022
@@ -538,7 +538,7 @@
*-----------------------------------------------------------------*/
void CF_CmdAbandon(CFE_SB_Buffer_t *msg)
{
if (CF_TsnChanAction((CF_TransactionCmd_t *)msg, "abandon", CF_CmdCancel_Txn, NULL) > 0)
if (CF_TsnChanAction((CF_TransactionCmd_t *)msg, "abandon", CF_CmdAbandon_Txn, NULL) > 0)

Check warning

Code scanning / CodeQL-coding-standard

Side effect in a Boolean expression

This Boolean expression is not side-effect free.
@dzbaker dzbaker added CCB:Approved and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Jul 20, 2022
@dzbaker dzbaker merged commit c06ae3d into nasa:main Jul 20, 2022
@skliper skliper added this to the Draco milestone Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect parameter in Abandon command
5 participants