diff options
Diffstat (limited to 'host/utils/uhd_cal_tx_iq_balance.cpp')
-rw-r--r-- | host/utils/uhd_cal_tx_iq_balance.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/host/utils/uhd_cal_tx_iq_balance.cpp b/host/utils/uhd_cal_tx_iq_balance.cpp index da8807479..d5079431b 100644 --- a/host/utils/uhd_cal_tx_iq_balance.cpp +++ b/host/utils/uhd_cal_tx_iq_balance.cpp @@ -78,14 +78,7 @@ static double tune_rx_and_tx(uhd::usrp::multi_usrp::sptr usrp, const double tx_l rx_tune_req.dsp_freq = rx_freq - max_fe_rx_freq; usrp->set_rx_freq(rx_tune_req); - //wait for the LOs to become locked - std::this_thread::sleep_for(std::chrono::milliseconds(50)); - boost::system_time start = boost::get_system_time(); - while (not usrp->get_tx_sensor("lo_locked").to_bool() or not usrp->get_rx_sensor("lo_locked").to_bool()) - { - if (boost::get_system_time() > start + boost::posix_time::milliseconds(100)) - throw std::runtime_error("timed out waiting for TX and/or RX LO to lock"); - } + wait_for_lo_lock(usrp); return usrp->get_tx_freq(); } |