Skip to content

Commit

Permalink
Frequency Scanner: initialize pointer to FrequencyScanner. Fixes #2262
Browse files Browse the repository at this point in the history
  • Loading branch information
f4exb committed Oct 4, 2024
1 parent 1a55e32 commit 9d1160e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/channelrx/freqscanner/freqscanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void FreqScanner::start()

qDebug("FreqScanner::start");
m_thread = new QThread();
m_basebandSink = new FreqScannerBaseband();
m_basebandSink = new FreqScannerBaseband(this);
m_basebandSink->setFifoLabel(QString("%1 [%2:%3]")
.arg(m_channelId)
.arg(m_deviceAPI->getDeviceSetIndex())
Expand Down
3 changes: 2 additions & 1 deletion plugins/channelrx/freqscanner/freqscannerbaseband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@

MESSAGE_CLASS_DEFINITION(FreqScannerBaseband::MsgConfigureFreqScannerBaseband, Message)

FreqScannerBaseband::FreqScannerBaseband() :
FreqScannerBaseband::FreqScannerBaseband(FreqScanner *freqScanner) :
m_freqScanner(freqScanner),
m_messageQueueToGUI(nullptr)
{
qDebug("FreqScannerBaseband::FreqScannerBaseband");
Expand Down
2 changes: 1 addition & 1 deletion plugins/channelrx/freqscanner/freqscannerbaseband.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class FreqScannerBaseband : public QObject
{ }
};

FreqScannerBaseband();
FreqScannerBaseband(FreqScanner *freqScanner);
~FreqScannerBaseband();
void reset();
void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);
Expand Down

0 comments on commit 9d1160e

Please sign in to comment.