diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-05-28 12:31:19 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-05-28 12:31:19 +0200 |
commit | 2784f199bce0455cc56b1eda9cbf3fbbba1b136e (patch) | |
tree | 60ad2b7c78b54946190ccc7c9be435a378fdec8c /src/output/Soapy.cpp | |
parent | c03474ea5ad656e0f2f89a8866a8ac651bd6bc76 (diff) | |
download | dabmod-2784f199bce0455cc56b1eda9cbf3fbbba1b136e.tar.gz dabmod-2784f199bce0455cc56b1eda9cbf3fbbba1b136e.tar.bz2 dabmod-2784f199bce0455cc56b1eda9cbf3fbbba1b136e.zip |
Fix DEXTER freq readback, make SDRDevices responsible for updating conf freq
Diffstat (limited to 'src/output/Soapy.cpp')
-rw-r--r-- | src/output/Soapy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/output/Soapy.cpp b/src/output/Soapy.cpp index 7931860..6a198b5 100644 --- a/src/output/Soapy.cpp +++ b/src/output/Soapy.cpp @@ -86,7 +86,6 @@ Soapy::Soapy(SDRDeviceConfig& config) : " ksps."; tune(m_conf.lo_offset, m_conf.frequency); - m_conf.frequency = m_device->getFrequency(SOAPY_SDR_TX, 0); etiLog.level(info) << "SoapySDR:Actual frequency: " << std::fixed << std::setprecision(3) << m_conf.frequency / 1000.0 << " kHz."; @@ -143,6 +142,8 @@ void Soapy::tune(double lo_offset, double frequency) SoapySDR::Kwargs offset_arg; offset_arg["OFFSET"] = to_string(lo_offset); m_device->setFrequency(SOAPY_SDR_TX, 0, m_conf.frequency, offset_arg); + + m_conf.frequency = m_device->getFrequency(SOAPY_SDR_TX, 0); } double Soapy::get_tx_freq(void) const |