From ed1b706661db3d3fb2f69bc48609bf9be8091e57 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 11 Oct 2018 15:14:58 +0200 Subject: [PATCH] NFM demod: if squelch < -100 assume it is old format and divide by 10 --- plugins/channelrx/demodnfm/nfmdemodsettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channelrx/demodnfm/nfmdemodsettings.cpp b/plugins/channelrx/demodnfm/nfmdemodsettings.cpp index 49740e21a..b23684402 100644 --- a/plugins/channelrx/demodnfm/nfmdemodsettings.cpp +++ b/plugins/channelrx/demodnfm/nfmdemodsettings.cpp @@ -110,7 +110,7 @@ bool NFMDemodSettings::deserialize(const QByteArray& data) d.readS32(4, &tmp, 20); m_volume = tmp / 10.0; d.readS32(5, &tmp, -30); - m_squelch = (tmp < -100 ? -100 : tmp) * 1.0; + m_squelch = (tmp < -100 ? tmp/10 : tmp) * 1.0; d.readU32(7, &m_rgbColor, QColor(255, 0, 0).rgb()); d.readS32(8, &m_ctcssIndex, 0); d.readBool(9, &m_ctcssOn, false);