aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rw-r--r--src/output/SDR.cpp16
2 files changed, 9 insertions, 9 deletions
diff --git a/TODO b/TODO
index 9253cab..343dad1 100644
--- a/TODO
+++ b/TODO
@@ -15,7 +15,7 @@ This would enable SFN support with LimeSDR devices.
Move dpd port from uhd section to somewhere else.
-Clean up and separate GPS and refclk checks.
+Clean up and separate GPS and refclk checks. Ensure muting is set properly at startup.
Add antenna selection to config.
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp
index 56cb1bd..356ae4f 100644
--- a/src/output/SDR.cpp
+++ b/src/output/SDR.cpp
@@ -64,16 +64,14 @@ SDR::SDR(SDRDeviceConfig& config, std::shared_ptr<SDRDevice> device) :
m_device(device)
{
// muting is remote-controllable, and reset by the GPS fix check
- m_config.muting = true;
+ m_config.muting = false;
m_device_thread = std::thread(&SDR::process_thread_entry, this);
- if (m_config.dpdFeedbackServerPort != 0) {
- m_dpd_feedback_server = make_shared<DPDFeedbackServer>(
- m_device,
- m_config.dpdFeedbackServerPort,
- m_config.sampleRate);
- }
+ m_dpd_feedback_server = make_shared<DPDFeedbackServer>(
+ m_device,
+ m_config.dpdFeedbackServerPort,
+ m_config.sampleRate);
}
SDR::~SDR()
@@ -119,7 +117,9 @@ int SDR::process(Buffer *dataIn)
}
else {
try {
- m_dpd_feedback_server->set_tx_frame(frame.buf, frame.ts);
+ if (m_dpd_feedback_server) {
+ m_dpd_feedback_server->set_tx_frame(frame.buf, frame.ts);
+ }
}
catch (const runtime_error& e) {
etiLog.level(warn) <<