diff --git a/plugins/channelrx/demodssb/ssbdemod.cpp b/plugins/channelrx/demodssb/ssbdemod.cpp index c1afdfac4..0a00ac757 100644 --- a/plugins/channelrx/demodssb/ssbdemod.cpp +++ b/plugins/channelrx/demodssb/ssbdemod.cpp @@ -426,7 +426,7 @@ void SSBDemod::applySettings(const SSBDemodSettings& settings, bool force) (m_settings.m_agcClamping != settings.m_agcClamping) || force) { int agcNbSamples = 48 * (1<agcPowerThresholdText->setText("---"); } diff --git a/plugins/channelrx/demodssb/ssbdemodgui.ui b/plugins/channelrx/demodssb/ssbdemodgui.ui index b9260db25..1eb189c2e 100644 --- a/plugins/channelrx/demodssb/ssbdemodgui.ui +++ b/plugins/channelrx/demodssb/ssbdemodgui.ui @@ -777,7 +777,7 @@ Power threshold (dB) - -110 + -120 0 diff --git a/plugins/channelrx/demodssb/ssbdemodsettings.cpp b/plugins/channelrx/demodssb/ssbdemodsettings.cpp index bff130abd..60a2a8c17 100644 --- a/plugins/channelrx/demodssb/ssbdemodsettings.cpp +++ b/plugins/channelrx/demodssb/ssbdemodsettings.cpp @@ -21,6 +21,9 @@ #include "settings/serializable.h" #include "ssbdemodsettings.h" +const int SSBDemodSettings::m_minPowerThresholdDB = -120; +const float SSBDemodSettings::m_mminPowerThresholdDBf = 120.0f; + SSBDemodSettings::SSBDemodSettings() : m_channelMarker(0), m_spectrumGUI(0) diff --git a/plugins/channelrx/demodssb/ssbdemodsettings.h b/plugins/channelrx/demodssb/ssbdemodsettings.h index fe491125a..fda0e1fad 100644 --- a/plugins/channelrx/demodssb/ssbdemodsettings.h +++ b/plugins/channelrx/demodssb/ssbdemodsettings.h @@ -53,6 +53,9 @@ struct SSBDemodSettings void setSpectrumGUI(Serializable *spectrumGUI) { m_spectrumGUI = spectrumGUI; } QByteArray serialize() const; bool deserialize(const QByteArray& data); + + static const int m_minPowerThresholdDB; + static const float m_mminPowerThresholdDBf; };