diff options
Diffstat (limited to 'src/output/UHD.cpp')
-rw-r--r-- | src/output/UHD.cpp | 4 |
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()); |