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

Update/arrayiffy cmd split #2287

Merged
merged 4 commits into from
Sep 28, 2023
Merged

Conversation

LeStarch
Copy link
Collaborator

Originating Project/Creator Infrastructure
Affected Component CmdSplitter
Affected Architectures(s)
Related Issue(s)
Has Unit Tests (y/n) y
Builds Without Errors (y/n) y
Unit Tests Pass (y/n) y
Documentation Included (y/n) y

Change Description

Make command splitter support multiple command sources as command dispatcher does.

@LeStarch LeStarch requested a review from thomas-bc September 27, 2023 19:29
Svc/CmdSplitter/CmdSplitter.cpp Fixed Show fixed Hide fixed
@@ -29,13 +32,13 @@

if (stat != Fw::FW_SERIALIZE_OK) {
// Let the local command dispatcher deal with it
this->LocalCmd_out(0, data, context);
this->LocalCmd_out(portNum, data, context);

Check warning

Code scanning / CodeQL

Unchecked function argument

This use of parameter context has not been checked.
Svc/CmdSplitter/CmdSplitter.cpp Fixed Show fixed Hide fixed
if (cmdPkt.getOpCode() < CMD_SPLITTER_REMOTE_OPCODE_BASE) {
this->LocalCmd_out(0, data, context);
if (cmdPkt.getOpCode() < this->m_remoteBase) {
this->LocalCmd_out(portNum, data, context);

Check warning

Code scanning / CodeQL

Unchecked function argument

This use of parameter context has not been checked.
Svc/CmdSplitter/CmdSplitter.cpp Fixed Show fixed Hide fixed
} else {
this->RemoteCmd_out(0, data, context);
this->RemoteCmd_out(portNum, data, context);

Check warning

Code scanning / CodeQL

Unchecked function argument

This use of parameter context has not been checked.
@@ -19,6 +18,10 @@

CmdSplitter ::~CmdSplitter() {}

void CmdSplitter ::configure(FwOpcodeType remoteBaseOpcode) {
this->m_remoteBase = remoteBaseOpcode;

Check warning

Code scanning / CodeQL

Unchecked function argument

This use of parameter remoteBaseOpcode has not been checked.
@LeStarch LeStarch force-pushed the update/arrayiffy-cmd-split branch from c0f94ef to 12ec38e Compare September 27, 2023 20:37
@LeStarch LeStarch force-pushed the update/arrayiffy-cmd-split branch from 12ec38e to 6c51f61 Compare September 27, 2023 20:42
@thomas-bc thomas-bc merged commit 2868523 into nasa:devel Sep 28, 2023
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.

2 participants