diff --git a/plugins/channel/bfm/bfmdemodgui.cpp b/plugins/channel/bfm/bfmdemodgui.cpp
index c0c4f81b9..5c169fcf1 100644
--- a/plugins/channel/bfm/bfmdemodgui.cpp
+++ b/plugins/channel/bfm/bfmdemodgui.cpp
@@ -110,6 +110,7 @@ QByteArray BFMDemodGUI::serialize() const
s.writeU32(7, m_channelMarker.getColor().rgb());
s.writeBlob(8, ui->spectrumGUI->serialize());
s.writeBool(9, ui->audioStereo->isChecked());
+ s.writeBool(10, ui->lsbStereo->isChecked());
return s.final();
}
@@ -162,6 +163,9 @@ bool BFMDemodGUI::deserialize(const QByteArray& data)
d.readBool(9, &booltmp, false);
ui->audioStereo->setChecked(booltmp);
+ d.readBool(10, &booltmp, false);
+ ui->lsbStereo->setChecked(booltmp);
+
blockApplySettings(false);
m_channelMarker.blockSignals(false);
@@ -243,6 +247,11 @@ void BFMDemodGUI::on_audioStereo_toggled(bool stereo)
applySettings();
}
+void BFMDemodGUI::on_lsbStereo_toggled(bool lsb)
+{
+ applySettings();
+}
+
void BFMDemodGUI::on_showPilot_clicked()
{
applySettings();
diff --git a/plugins/channel/bfm/bfmdemodgui.h b/plugins/channel/bfm/bfmdemodgui.h
index 017589db5..391e87663 100644
--- a/plugins/channel/bfm/bfmdemodgui.h
+++ b/plugins/channel/bfm/bfmdemodgui.h
@@ -63,6 +63,7 @@ private slots:
void on_volume_valueChanged(int value);
void on_squelch_valueChanged(int value);
void on_audioStereo_toggled(bool stereo);
+ void on_lsbStereo_toggled(bool lsb);
void on_showPilot_clicked();
void on_rds_clicked();
void on_g14ProgServiceNames_currentIndexChanged(int index);
diff --git a/plugins/channel/bfm/bfmdemodgui.ui b/plugins/channel/bfm/bfmdemodgui.ui
index f82516ee5..77480be03 100644
--- a/plugins/channel/bfm/bfmdemodgui.ui
+++ b/plugins/channel/bfm/bfmdemodgui.ui
@@ -21,7 +21,7 @@
10
20
- 311
+ 411
121
@@ -160,6 +160,26 @@
+ -
+
+
+ Use only LSB from stereo subcarrier
+
+
+
+
+
+
+ :/lsb.png:/lsb.png
+
+
+ true
+
+
+ true
+
+
+
-
diff --git a/sdrbase/resources/lsb.png b/sdrbase/resources/lsb.png
new file mode 100644
index 000000000..00dfbda14
Binary files /dev/null and b/sdrbase/resources/lsb.png differ
diff --git a/sdrbase/resources/res.qrc b/sdrbase/resources/res.qrc
index 79d3f8c12..8d605b41d 100644
--- a/sdrbase/resources/res.qrc
+++ b/sdrbase/resources/res.qrc
@@ -48,5 +48,6 @@
carrier.png
rds.png
recycle.png
+ lsb.png