aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2014-12-05 09:21:06 -0800
committerAshish Chaudhari <ashish@ettus.com>2014-12-05 09:21:06 -0800
commit12d91d67187e72c189c42970f3bc1323c1977a4a (patch)
tree81c3aea8c5816e5e24a0f752d6897704e29481f1 /host/lib
parent2068af70eee6b6ca831d8bd71764d783e182f913 (diff)
downloaduhd-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')
-rw-r--r--host/lib/usrp/x300/x300_impl.cpp4
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)