Fix #288, Remove unnecessary `CF_UnionArgs_Payload_t` union
Checklist
- [x] I reviewed the Contributing Guide.
- [x] I signed and emailed the appropriate Contributor License Agreement to [email protected] and copied [email protected].
Describe the contribution
-
Fixes #288
CF_UnionArgs_Payload_thas been removed, given that only a single member of the 3 is used in CF. That member variable -byte- has been moved into theCF_UnionArgsCmd_tstruct, which was the only place whereCF_UnionArgs_Payload_twas used. -
Re-introduced from https://github.com/nasa/CF/pull/341. https://github.com/nasa/CF/issues/393, https://github.com/nasa/CF/pull/395 reverted this PR due to integration issues. Resubmitting here for consideration in next release.
Testing performed GitHub CI actions (incl. Build + Run, Unit Tests etc.) all passing successfully.
Expected behavior changes No impact on logic. Code is simplified and clearer.
Contributor Info Avi Weiss @thnkslprpt
We need to also do this but I'd like to approach it a bit differently. Although only the "byte" field is used now, it is still used for a few different things in different commands. Now that each command has its own definition, this should be made type-correct.
@jphickey So you want to create command-specific struct members for each command? What exactly do you mean in terms of the solution to make it type-correct? Cheers