Skip to content

Commit

Permalink
Update spectrum and inspector frequencies properly on source info
Browse files Browse the repository at this point in the history
  • Loading branch information
BatchDrake committed Jun 5, 2024
1 parent 15fa620 commit 00025bd
Show file tree
Hide file tree
Showing 6 changed files with 264 additions and 243 deletions.
16 changes: 16 additions & 0 deletions Components/MainSpectrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,22 @@ MainSpectrum::setGracePeriod(qint64 period)
m_freqGracePeriod = period;
}

void
MainSpectrum::setDisplayFreqs(qint64 freq, qint64 lnbFreq)
{
qint64 newLo = m_ui->loLcd->getValue() - freq;

m_ui->lnbLcd->setValueSilent(lnbFreq);
m_ui->fcLcd->setValueSilent(freq);

WATERFALL_CALL(setFreqUnits(getFrequencyUnits(freq)));
WATERFALL_CALL(setCenterFreq(freq));

updateLimits();

BLOCKSIG(this, setLoFreq(newLo));
}

void
MainSpectrum::setFreqs(qint64 freq, qint64 lnbFreq, bool silent)
{
Expand Down
2 changes: 1 addition & 1 deletion Default/GenericInspector/GenericInspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ GenericInspector::inspectorMessage(Suscan::InspectorMessage const &msg)
p = len / 2;

for (auto i = 0u; i < len; ++i)
data[i] = SU_POWER_DB(data[i]);
data[i] = SU_POWER_DB_RAW(data[i]);

for (auto i = 0u; i < len / 2; ++i) {
x = data[i];
Expand Down
Loading

0 comments on commit 00025bd

Please sign in to comment.