From 7780435cba0b924a312c5e78a91e0deecc491ae9 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 21 Sep 2020 19:45:14 +0200 Subject: [PATCH] DATV demod: fixed incorrect frequency update when spectrum point and click is used. Fixes issue #637 --- plugins/channelrx/demoddatv/datvdemodgui.cpp | 10 +++------- plugins/channelrx/demoddatv/datvdemodgui.h | 1 - plugins/channelrx/demoddatv/datvdemodplugin.cpp | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/plugins/channelrx/demoddatv/datvdemodgui.cpp b/plugins/channelrx/demoddatv/datvdemodgui.cpp index f34de9a1d..e0d0e2273 100644 --- a/plugins/channelrx/demoddatv/datvdemodgui.cpp +++ b/plugins/channelrx/demoddatv/datvdemodgui.cpp @@ -130,12 +130,8 @@ void DATVDemodGUI::handleInputMessages() void DATVDemodGUI::channelMarkerChangedByCursor() { ui->deltaFrequency->setValue(m_objChannelMarker.getCenterFrequency()); - - if(m_intCenterFrequency!=m_objChannelMarker.getCenterFrequency()) - { - m_intCenterFrequency=m_objChannelMarker.getCenterFrequency(); - applySettings(); - } + m_settings.m_centerFrequency = m_objChannelMarker.getCenterFrequency(); + applySettings(); } void DATVDemodGUI::channelMarkerHighlightedByCursor() @@ -719,4 +715,4 @@ void DATVDemodGUI::on_udpTSPort_editingFinished() m_settings.m_udpTSPort = udpPort; ui->udpTSPort->setText(tr("%1").arg(udpPort)); applySettings(); -} \ No newline at end of file +} diff --git a/plugins/channelrx/demoddatv/datvdemodgui.h b/plugins/channelrx/demoddatv/datvdemodgui.h index 2033dd20a..62d44e905 100644 --- a/plugins/channelrx/demoddatv/datvdemodgui.h +++ b/plugins/channelrx/demoddatv/datvdemodgui.h @@ -105,7 +105,6 @@ private: ChannelMarker m_objChannelMarker; DATVDemod* m_objDATVDemod; MessageQueue m_inputMessageQueue; - int m_intCenterFrequency; DATVDemodSettings m_settings; QTimer m_objTimer; diff --git a/plugins/channelrx/demoddatv/datvdemodplugin.cpp b/plugins/channelrx/demoddatv/datvdemodplugin.cpp index d900194b9..b0e2feaa9 100644 --- a/plugins/channelrx/demoddatv/datvdemodplugin.cpp +++ b/plugins/channelrx/demoddatv/datvdemodplugin.cpp @@ -30,7 +30,7 @@ const PluginDescriptor DATVDemodPlugin::m_ptrPluginDescriptor = { DATVDemod::m_channelId, QString("DATV Demodulator"), - QString("4.15.4"), + QString("4.16.2"), QString("(c) F4HKW for SDRAngel using LeanSDR framework (c) F4DAV"), QString("https://github.com/f4exb/sdrangel"), true,