Skip to content

Commit

Permalink
Be aware of the bandwidth signal
Browse files Browse the repository at this point in the history
  • Loading branch information
BatchDrake committed Jan 29, 2024
1 parent 1585507 commit 9a93015
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions PowerProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,16 @@ PowerProcessor::onInspectorMessage(Suscan::InspectorMessage const &msg)
default:
break;
}
} else {
if (msg.getKind() == SUSCAN_ANALYZER_INSPECTOR_MSGKIND_SIGNAL
&& msg.getSignalName() == "scaling") {
}

if (msg.getKind() == SUSCAN_ANALYZER_INSPECTOR_MSGKIND_SIGNAL) {
auto name = msg.getSignalName();

if (msg.getSignalName() == "scaling") {
m_haveScaling = true;
m_bpeScaling = msg.getSignalValue();
} else if (msg.getSignalName() == "insp.true_bw") {
m_trueBandwidth = msg.getSignalValue();
}
}
}
Expand Down Expand Up @@ -551,7 +556,9 @@ PowerProcessor::onOpened(Suscan::AnalyzerRequest const &req)
m_trueBandwidth = adjustBandwidth(m_desiredBandwidth);

// Adjust bandwidth to something that is physical and determined by the FFT
// This will trigger the receiption of an insp.true_bw signal
m_analyzer->setInspectorBandwidth(m_inspHandle, m_trueBandwidth);

// Enter in configuring state
this->configureInspector();
}
Expand Down

0 comments on commit 9a93015

Please sign in to comment.