From 030b58a1ed6e0350b1ff36c0b32044eee71391f3 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 18 Mar 2017 16:10:16 +0100 Subject: [PATCH] ATV Demodulator: serialize/deserialize RF filters values --- plugins/channelrx/demodatv/atvdemodgui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/channelrx/demodatv/atvdemodgui.cpp b/plugins/channelrx/demodatv/atvdemodgui.cpp index 4b9375ede..1c60b93a1 100644 --- a/plugins/channelrx/demodatv/atvdemodgui.cpp +++ b/plugins/channelrx/demodatv/atvdemodgui.cpp @@ -103,6 +103,8 @@ QByteArray ATVDemodGUI::serialize() const s.writeBool(9, ui->hSync->isChecked()); s.writeBool(10, ui->vSync->isChecked()); s.writeBool(11, ui->halfImage->isChecked()); + s.writeS32(12, ui->rfBW->value()); + s.writeS32(13, ui->rfOppBW->value()); return s.final(); } @@ -154,6 +156,10 @@ bool ATVDemodGUI::deserialize(const QByteArray& arrData) ui->vSync->setChecked(booltmp); d.readBool(11, &booltmp, false); ui->halfImage->setChecked(booltmp); + d.readS32(12, &tmp, 10); + ui->rfBW->setValue(tmp); + d.readS32(13, &tmp, 10); + ui->rfOppBW->setValue(tmp); blockApplySettings(false); m_objChannelMarker.blockSignals(false);