diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2014-12-05 09:21:06 -0800 |
---|---|---|
committer | Ashish Chaudhari <ashish@ettus.com> | 2014-12-05 09:21:06 -0800 |
commit | 12d91d67187e72c189c42970f3bc1323c1977a4a (patch) | |
tree | 81c3aea8c5816e5e24a0f752d6897704e29481f1 /host/lib/usrp/x300/x300_impl.cpp | |
parent | 2068af70eee6b6ca831d8bd71764d783e182f913 (diff) | |
download | uhd-12d91d67187e72c189c42970f3bc1323c1977a4a.tar.gz uhd-12d91d67187e72c189c42970f3bc1323c1977a4a.tar.bz2 uhd-12d91d67187e72c189c42970f3bc1323c1977a4a.zip |
x300: Fixed minor issues in X300 clk code
- Bugfix for #638
- get_ref_locked will check lock status one last time before giving up
Diffstat (limited to 'host/lib/usrp/x300/x300_impl.cpp')
-rw-r--r-- | host/lib/usrp/x300/x300_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp index 8d255097d..c7980c997 100644 --- a/host/lib/usrp/x300/x300_impl.cpp +++ b/host/lib/usrp/x300/x300_impl.cpp @@ -1434,8 +1434,8 @@ bool x300_impl::wait_for_ref_locked(wb_iface::sptr ctrl, double timeout) boost::this_thread::sleep(boost::posix_time::milliseconds(1)); } while (boost::get_system_time() < timeout_time); - //failed to lock on reference - return false; + //Check one last time + return get_ref_locked(ctrl).to_bool(); } sensor_value_t x300_impl::get_ref_locked(wb_iface::sptr ctrl) |