aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/UHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-05-28 12:31:19 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-05-28 12:31:19 +0200
commit2784f199bce0455cc56b1eda9cbf3fbbba1b136e (patch)
tree60ad2b7c78b54946190ccc7c9be435a378fdec8c /src/output/UHD.cpp
parentc03474ea5ad656e0f2f89a8866a8ac651bd6bc76 (diff)
downloaddabmod-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/UHD.cpp')
-rw-r--r--src/output/UHD.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/output/UHD.cpp b/src/output/UHD.cpp
index 094e021..e097692 100644
--- a/src/output/UHD.cpp
+++ b/src/output/UHD.cpp
@@ -204,7 +204,6 @@ UHD::UHD(SDRDeviceConfig& config) :
tune(m_conf.lo_offset, m_conf.frequency);
- m_conf.frequency = m_usrp->get_tx_freq();
etiLog.level(debug) << std::fixed << std::setprecision(3) <<
"OutputUHD:Actual TX frequency: " << m_conf.frequency;
@@ -285,6 +284,8 @@ void UHD::tune(double lo_offset, double frequency)
m_usrp->set_rx_freq(frequency);
}
+
+ m_conf.frequency = m_usrp->get_tx_freq();
}
double UHD::get_tx_freq(void) const