From 0ace8657b25fa843c8be009d1a35c748b4d1fe25 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Sun, 3 Jan 2016 15:00:41 -0500 Subject: [PATCH] Fix offset frequency drift.. --- src/sdr/SoapySDRThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdr/SoapySDRThread.cpp b/src/sdr/SoapySDRThread.cpp index 712dd3d..f0530eb 100644 --- a/src/sdr/SoapySDRThread.cpp +++ b/src/sdr/SoapySDRThread.cpp @@ -246,8 +246,8 @@ void SDRThread::updateSettings() { } double devFreq = device->getFrequency(SOAPY_SDR_RX,0); - if (devFreq != frequency.load()) { - wxGetApp().setFrequency((long long)devFreq); + if (((long long)devFreq + offset.load()) != frequency.load()) { + wxGetApp().setFrequency((long long)devFreq + offset.load()); } if (agc_mode_changed.load()) {