From 0e4c3ec31733020cf09e42762e0fb03923fcdcf0 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 9 Oct 2020 20:04:53 +0100 Subject: [PATCH] Initialise m_spectrumSink pointer --- plugins/channeltx/modpacket/packetmodsource.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/channeltx/modpacket/packetmodsource.cpp b/plugins/channeltx/modpacket/packetmodsource.cpp index d849e4ec0..d0e352812 100644 --- a/plugins/channeltx/modpacket/packetmodsource.cpp +++ b/plugins/channeltx/modpacket/packetmodsource.cpp @@ -39,8 +39,9 @@ PacketModSource::PacketModSource() : m_bitIdx(0), m_last5Bits(0), m_state(idle), - m_scrambler(0x10800, 0x0) -{ + m_scrambler(0x10800, 0x0), + m_spectrumSink(nullptr) + { m_lowpass.create(301, m_channelSampleRate, 22000.0 / 2.0); qDebug() << "PacketModSource::PacketModSource creating BPF : " << m_channelSampleRate; m_bandpass.create(301, m_channelSampleRate, 800.0, 2600.0);