diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-12-17 15:13:41 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-12-17 15:13:41 +0100 |
commit | 154234871e06d6943d7e79a05ba10b37eb7e9198 (patch) | |
tree | 9db6a255acba7e65063fc56f4b61435ce7499d6a | |
parent | 6be53e16ae994e20857ec92568f9ad125c73c18f (diff) | |
download | dabmod-154234871e06d6943d7e79a05ba10b37eb7e9198.tar.gz dabmod-154234871e06d6943d7e79a05ba10b37eb7e9198.tar.bz2 dabmod-154234871e06d6943d7e79a05ba10b37eb7e9198.zip |
Only start DPD feedback if port is set
-rw-r--r-- | src/output/SDR.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp index 068b5af..23a947b 100644 --- a/src/output/SDR.cpp +++ b/src/output/SDR.cpp @@ -66,10 +66,12 @@ SDR::SDR(SDRDeviceConfig& config, std::shared_ptr<SDRDevice> device) : m_device_thread = std::thread(&SDR::process_thread_entry, this); - m_dpd_feedback_server = make_shared<DPDFeedbackServer>( - m_device, - m_config.dpdFeedbackServerPort, - m_config.sampleRate); + if (m_config.dpdFeedbackServerPort > 0) { + m_dpd_feedback_server = make_shared<DPDFeedbackServer>( + m_device, + m_config.dpdFeedbackServerPort, + m_config.sampleRate); + } RC_ADD_PARAMETER(txgain, "TX gain"); RC_ADD_PARAMETER(rxgain, "RX gain for DPD feedback"); |