diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/output/SDR.cpp | 3 | ||||
-rw-r--r-- | src/output/UHD.cpp | 7 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp index 5290e5d..ed5da13 100644 --- a/src/output/SDR.cpp +++ b/src/output/SDR.cpp @@ -374,8 +374,7 @@ void SDR::set_parameter(const string& parameter, const string& value) } else if (parameter == "rxgain") { ss >> m_config.rxgain; - // TODO myUsrp->set_rx_gain(m_config.rxgain); - throw ParameterError("Parameter " + parameter + " is TODO."); + m_device->set_rxgain(m_config.rxgain); } else if (parameter == "freq") { ss >> m_config.frequency; diff --git a/src/output/UHD.cpp b/src/output/UHD.cpp index cee35c7..4816f34 100644 --- a/src/output/UHD.cpp +++ b/src/output/UHD.cpp @@ -85,8 +85,7 @@ static void uhd_msg_handler(uhd::msg::type_t type, const std::string &msg) -UHD::UHD( - SDRDeviceConfig& config) : +UHD::UHD(SDRDeviceConfig& config) : SDRDevice(), m_conf(config), m_running(false) @@ -104,10 +103,6 @@ UHD::UHD( MDEBUG("OutputUHD::OutputUHD(device: %s) @ %p\n", device.str().c_str(), this); - /* TODO - RC_ADD_PARAMETER(rxgain, "UHD analog daughterboard RX gain for DPD feedback"); - */ - uhd::msg::register_handler(uhd_msg_handler); uhd::set_thread_priority_safe(); |