Add static_cast to ambiguous serialize call in FpySequencer#4008
Merged
kevin-f-ortega merged 1 commit intonasa:develfrom Aug 10, 2025
Merged
Add static_cast to ambiguous serialize call in FpySequencer#4008kevin-f-ortega merged 1 commit intonasa:develfrom
kevin-f-ortega merged 1 commit intonasa:develfrom
Conversation
thomas-bc
approved these changes
Aug 10, 2025
| Signal FpySequencer::cmd_directiveHandler(const FpySequencer_CmdDirective& directive, DirectiveError& error) { | ||
| Fw::ComBuffer cmdBuf; | ||
| Fw::SerializeStatus stat = cmdBuf.serialize(Fw::ComPacketType::FW_PACKET_COMMAND); | ||
| Fw::SerializeStatus stat = cmdBuf.serialize(static_cast<FwPacketDescriptorType>(Fw::ComPacketType::FW_PACKET_COMMAND)); |
Collaborator
There was a problem hiding this comment.
Could use the new form serializeFrom() variant. serialize() will be deprecated next release.
Collaborator
There was a problem hiding this comment.
I agree. I'll open a ticket asking for this change. We can address it in a separate PR
kevin-f-ortega
approved these changes
Aug 10, 2025
ianbrault
pushed a commit
to ianbrault/fprime
that referenced
this pull request
Sep 8, 2025
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.
Change Description
Add
static_cast<FwPacketDescriptorType>toserialize()call inFpySequencerRationale
Older compilers can't decide which overloaded option to use without being specific with a
static_castTesting/Review Recommendations
N/A
Future Work
N/A
AI Usage (policy)
N/A