Repository navigation
Conversation
The per-channel dequeue_enabled flag was still set by the enable/disable dequeue commands and the configuration table, but nothing read it after the state machine rework in a0914c4, so pending transactions were always started. Check the flag in CF_CFDP_StartFirstPending() so that transactions stay on the PEND queue while dequeue is disabled. Transactions that are already active are not affected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist (Please check before submitting)
Describe the contribution
Fixes #527
dequeue_enabledcheck was dropped in a0914c4 (Fix #481, simplify and consolidate state machines #482) whenCF_CFDP_CycleTx()was removed. The flag is still written but never read.CF_CFDP_StartFirstPending().Testing performed
All 14 CF coverage test runners pass (built with
ENABLE_UNIT_TESTS=true).Added a disabled-dequeue case to
Test_CF_CFDP_StartFirstPending; it fails without the fix.Ran
core-cpu1from the cFS bundle and compared with and without the fix:dequeue_enabled= 0, with Tx File and with a polling directoryIn every case the transaction started while dequeue was disabled without the fix, and waited until Enable Dequeue with the fix.
Expected behavior changes
Pending TX transactions stay on the PEND queue while dequeue is disabled. Active transactions are not affected (the pre-a0914c4 check also paused them; this follows the user's guide instead).
System(s) tested on
Third party code
None.
Contributor Info - All information REQUIRED for consideration of pull request
Kyuwon Jeong (@cueon, jkw5033@gmail.com), Personal