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 #126, Refactor CFE_PSP_ModuleType_t enum #235

Merged
merged 1 commit into from
Jan 25, 2021

Conversation

skliper
Copy link
Contributor

@skliper skliper commented Jan 6, 2021

Describe the contribution
Fix #126 - Avoids irregular enum warning

Testing performed
Build bundle and unit test (passed)

Expected behavior changes
None other than eliminates static analysis warning

System(s) tested on

  • Hardware: cFS Dev Server
  • OS: Ubuntu 18.04
  • Versions: Bundle main + this commit

Additional context
None

Third party code
None

Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC

@skliper skliper added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Jan 6, 2021
@skliper skliper added this to the 1.6.0 milestone Jan 6, 2021
@astrogeco
Copy link
Contributor

CCB:2021-01-13 CHANGE

Invalid should stay zero.
Could make it sequential.

@astrogeco astrogeco added CCB:2021-01-13 and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Jan 13, 2021
Avoids irregular enum warning
@skliper
Copy link
Contributor Author

skliper commented Jan 13, 2021

Updated/simplified... could evolve to a switch or whatever if extended, but behavior is the same w/ just a simple equality check at this point.

@skliper skliper requested a review from jphickey January 13, 2021 21:39
Copy link
Contributor

@jphickey jphickey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine.

Just a note that the reason there was a "range" instead of just a single value it was intended to have more than one, it just ended up that the "SIMPLE" was the only module type that made it into the common framework code. For instance there are some old projects I did where we had two types, "SIMPLE" and "DEVICE_DRIVER" - the latter provided a useful layer to abstract our low level device I/O on a per-platform basis - but this type isn't in the common framework now, of course. But probably a "switch" would be better there anyway.

@astrogeco astrogeco changed the base branch from main to integration-candidate January 25, 2021 03:32
@astrogeco astrogeco merged commit 6d582be into nasa:integration-candidate Jan 25, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Jan 25, 2021
@skliper skliper deleted the fix126-irregular_enum branch February 1, 2021 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

recommended lgtm issues:
3 participants