Skip to content

Commit 2dea8ab

Browse files
authored
Add static_cast to ambiguous serialize call in FpySequencer (#4008)
1 parent abb09e4 commit 2dea8ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Svc/FpySequencer/FpySequencerDirectives.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ Signal FpySequencer::getPrm_directiveHandler(const FpySequencer_GetPrmDirective&
289289

290290
Signal FpySequencer::cmd_directiveHandler(const FpySequencer_CmdDirective& directive, DirectiveError& error) {
291291
Fw::ComBuffer cmdBuf;
292-
Fw::SerializeStatus stat = cmdBuf.serialize(Fw::ComPacketType::FW_PACKET_COMMAND);
292+
Fw::SerializeStatus stat = cmdBuf.serialize(static_cast<FwPacketDescriptorType>(Fw::ComPacketType::FW_PACKET_COMMAND));
293293
// TODO should I assert here? this really shouldn't fail, I should just add a static assert
294294
// on com buf size and then assert here
295295
if (stat != Fw::SerializeStatus::FW_SERIALIZE_OK) {

0 commit comments

Comments
 (0)