Skip to content

Commit

Permalink
remove duplicate RUN and STOP commands for spectrum analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
jankae committed Jun 29, 2024
1 parent 4dea105 commit 5f27884
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1084,16 +1084,6 @@ void SpectrumAnalyzer::SetupSCPI()
}, [=](QStringList) -> QString {
return singleSweep ? SCPI::getResultName(SCPI::Result::True): SCPI::getResultName(SCPI::Result::False);
}));
scpi_acq->add(new SCPICommand("RUN", [=](QStringList) -> QString {
Run();
return SCPI::getResultName(SCPI::Result::Empty);
}, [=](QStringList) -> QString {
return running ? SCPI::getResultName(SCPI::Result::True) : SCPI::getResultName(SCPI::Result::False);
}));
scpi_acq->add(new SCPICommand("STOP", [=](QStringList) -> QString {
Stop();
return SCPI::getResultName(SCPI::Result::Empty);
}, nullptr));
auto scpi_tg = new SCPINode("TRACKing");
SCPINode::add(scpi_tg);
scpi_tg->add(new SCPICommand("ENable", [=](QStringList params) -> QString {
Expand Down
2 changes: 1 addition & 1 deletion Software/PC_Application/LibreVNA-GUI/scpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ bool SCPINode::remove(SCPINode *node)
bool SCPINode::add(SCPICommand *cmd)
{
if(nameCollision(cmd->name())) {
qWarning() << "Unable to add SCPI node, name collision: " << cmd->name();
qWarning() << "Unable to add SCPI command, name collision: " << cmd->name();
return false;
}
commands.push_back(cmd);
Expand Down

0 comments on commit 5f27884

Please sign in to comment.