From 2784f199bce0455cc56b1eda9cbf3fbbba1b136e Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 28 May 2024 12:31:19 +0200 Subject: Fix DEXTER freq readback, make SDRDevices responsible for updating conf freq --- src/output/SDR.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/output/SDR.cpp') 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"); -- cgit v1.2.3