aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/SDR.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/SDR.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/SDR.cpp')
-rw-r--r--src/output/SDR.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp
index 17668e3..594171f 100644
--- a/src/output/SDR.cpp
+++ b/src/output/SDR.cpp
@@ -382,7 +382,6 @@ void SDR::set_parameter(const string& parameter, const string& value)
else if (parameter == "freq") {
ss >> m_config.frequency;
m_device->tune(m_config.lo_offset, m_config.frequency);
- m_config.frequency = m_device->get_tx_freq();
}
else if (parameter == "channel") {
try {
@@ -390,7 +389,6 @@ void SDR::set_parameter(const string& parameter, const string& value)
m_config.frequency = frequency;
m_device->tune(m_config.lo_offset, m_config.frequency);
- m_config.frequency = m_device->get_tx_freq();
}
catch (const std::out_of_range& e) {
throw ParameterError("Cannot parse channel");