From 5d1d455a907b0b7d7a87ab169192b868d81f1ff8 Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 13 Dec 2019 01:44:51 +0100 Subject: [PATCH] Remote Sink: fixed center frequency in meta data --- plugins/channelrx/remotesink/remotesinkbaseband.cpp | 1 + plugins/channelrx/remotesink/remotesinksink.h | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/channelrx/remotesink/remotesinkbaseband.cpp b/plugins/channelrx/remotesink/remotesinkbaseband.cpp index 6e478cd9d..3467cef8e 100644 --- a/plugins/channelrx/remotesink/remotesinkbaseband.cpp +++ b/plugins/channelrx/remotesink/remotesinkbaseband.cpp @@ -117,6 +117,7 @@ bool RemoteSinkBaseband::handleMessage(const Message& cmd) qDebug() << "RemoteSinkBaseband::handleMessage: DSPSignalNotification: basebandSampleRate:" << m_basebandSampleRate; m_channelizer->setBasebandSampleRate(m_basebandSampleRate); m_sink.applyBasebandSampleRate(m_basebandSampleRate); + m_sink.setDeviceCenterFrequency(notif.getCenterFrequency()); return true; } diff --git a/plugins/channelrx/remotesink/remotesinksink.h b/plugins/channelrx/remotesink/remotesinksink.h index a7c8773f8..e94b36e97 100644 --- a/plugins/channelrx/remotesink/remotesinksink.h +++ b/plugins/channelrx/remotesink/remotesinksink.h @@ -43,6 +43,7 @@ public: void applySettings(const RemoteSinkSettings& settings, bool force = false); void applyBasebandSampleRate(uint32_t sampleRate); + void setDeviceCenterFrequency(uint64_t frequency) { m_deviceCenterFrequency = frequency; } private: RemoteSinkSettings m_settings;