Skip to content

Commit

Permalink
Merge pull request #2138 from mxi-box/bugfix
Browse files Browse the repository at this point in the history
Bugfix: ADS-B demodulate & WFM modulate
  • Loading branch information
f4exb authored May 30, 2024
2 parents c913b20 + ac00e5b commit 4cf54cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/channelrx/demodadsb/adsbdemodsinkworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ void ADSBDemodSinkWorker::run()
if (m_sink->getMessageQueueToGUI() && ((df == 4) || (df == 5) || (df == 20) || (df == 21)))
{
ADSBDemodReport::MsgReportADSB *msg = ADSBDemodReport::MsgReportADSB::create(
QByteArray((char*)data, sizeof(data)),
QByteArray((char*)data, bytes),
preambleCorrelation * m_correlationScale,
preambleCorrelationOnes / samplesPerChip,
rxDateTime(firstIdx, readBuffer),
Expand All @@ -273,7 +273,7 @@ void ADSBDemodSinkWorker::run()
if (m_sink->getMessageQueueToWorker())
{
ADSBDemodReport::MsgReportADSB *msg = ADSBDemodReport::MsgReportADSB::create(
QByteArray((char*)data, sizeof(data)),
QByteArray((char*)data, bytes),
preambleCorrelation * m_correlationScale,
preambleCorrelationOnes / samplesPerChip,
rxDateTime(firstIdx, readBuffer),
Expand Down
1 change: 1 addition & 0 deletions plugins/channeltx/modwfm/wfmmodbaseband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ WFMModBaseband::WFMModBaseband()

WFMModBaseband::~WFMModBaseband()
{
DSPEngine::instance()->getAudioDeviceManager()->removeAudioSink(m_source.getFeedbackAudioFifo());
DSPEngine::instance()->getAudioDeviceManager()->removeAudioSource(m_source.getAudioFifo());
delete m_channelizer;
}
Expand Down

0 comments on commit 4cf54cb

Please sign in to comment.