Skip to content

Fix #41, no packing of CMD/TLM structs#133

Merged
astrogeco merged 1 commit intonasa:mainfrom
jphickey:fix-41-no-pack-cmd-tlm
Dec 17, 2021
Merged

Fix #41, no packing of CMD/TLM structs#133
astrogeco merged 1 commit intonasa:mainfrom
jphickey:fix-41-no-pack-cmd-tlm

Conversation

@jphickey
Copy link
Copy Markdown
Contributor

The CMD/TLM structures are application-defined. As such, they should not need to depend on compiler-specific extensions like packing.

Note that the definitions (mostly) already included explicit spare bytes where padding was likely to be needed, so the "packed" attribute was largely unnecessary here, only serving to make the definitions NOT compilant with C99.

Fixes #41

The CMD/TLM structures are application-defined.  As such, they should
not need to depend on compiler-specific extensions like packing.

Note that the definitions (mostly) already included explicit spare bytes
where padding was likely to be needed, so the "packed" attribute was
largely unnecessary here, only serving to make the definitions NOT compilant
with C99.
@jphickey jphickey force-pushed the fix-41-no-pack-cmd-tlm branch from 57b6d69 to 772ad79 Compare December 16, 2021 15:08
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Dec 16, 2021
@astrogeco astrogeco requested review from a user, pepepr08 and skliper and removed request for a user December 16, 2021 23:59
@astrogeco astrogeco merged commit aa7f901 into nasa:main Dec 17, 2021
@astrogeco astrogeco removed the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jan 5, 2022
@astrogeco
Copy link
Copy Markdown
Contributor

CCB:2022-01-05 APPROVED

@jphickey jphickey deleted the fix-41-no-pack-cmd-tlm branch January 11, 2022 19:24
@skliper skliper added this to the Draco milestone Mar 25, 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.

CF C99 compliance and use of packed structures

4 participants