summaryrefslogtreecommitdiffstats
path: root/src/output/UHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-10 18:17:14 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-10 18:17:14 +0100
commitb41db624a2d162f691cbf7957feca2a0162a8367 (patch)
tree825aede715eaab9b79fdb9a449aa5b41a7383e17 /src/output/UHD.cpp
parent96b1cbaa255b04a20d0f7ca6bda14fa87eb3ed62 (diff)
downloaddabmod-b41db624a2d162f691cbf7957feca2a0162a8367.tar.gz
dabmod-b41db624a2d162f691cbf7957feca2a0162a8367.tar.bz2
dabmod-b41db624a2d162f691cbf7957feca2a0162a8367.zip
Properly initialise UHD GPSDO
Diffstat (limited to 'src/output/UHD.cpp')
-rw-r--r--src/output/UHD.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/UHD.cpp b/src/output/UHD.cpp
index 2c571fd..6838338 100644
--- a/src/output/UHD.cpp
+++ b/src/output/UHD.cpp
@@ -136,8 +136,6 @@ UHD::UHD(SDRDeviceConfig& config) :
}
m_usrp->set_time_source(m_conf.pps_src);
- m_device_time = std::make_shared<USRPTime>(m_usrp, m_conf);
-
if (m_conf.subDevice != "") {
m_usrp->set_tx_subdev_spec(uhd::usrp::subdev_spec_t(m_conf.subDevice),
uhd::usrp::multi_usrp::ALL_MBOARDS);
@@ -147,6 +145,8 @@ UHD::UHD(SDRDeviceConfig& config) :
etiLog.level(debug) << "UHD time source is " << m_usrp->get_time_source(0);
+ m_device_time = std::make_shared<USRPTime>(m_usrp, m_conf);
+
m_usrp->set_tx_rate(m_conf.sampleRate);
etiLog.log(debug, "OutputUHD:Set rate to %d. Actual TX Rate: %f sps...",
m_conf.sampleRate, m_usrp->get_tx_rate());