From 04a4d6348bff100305bb7481d652c7170b8ff62c Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Wed, 6 Jan 2016 10:03:29 -0800 Subject: n230: Fixed GPSDO detection logic --- host/lib/usrp/n230/n230_impl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'host/lib/usrp/n230/n230_impl.cpp') diff --git a/host/lib/usrp/n230/n230_impl.cpp b/host/lib/usrp/n230/n230_impl.cpp index 873a9a89f..b3cc4ab59 100644 --- a/host/lib/usrp/n230/n230_impl.cpp +++ b/host/lib/usrp/n230/n230_impl.cpp @@ -396,9 +396,8 @@ void n230_impl::_initialize_property_tree(const fs_path& mb_path) //------------------------------------------------------------------ // GPSDO sensors //------------------------------------------------------------------ - uhd::gps_ctrl::sptr gps_ctrl = _resource_mgr->get_gps_ctrl(); - if (gps_ctrl and gps_ctrl->gps_detected()) - { + if (_resource_mgr->is_gpsdo_present()) { + uhd::gps_ctrl::sptr gps_ctrl = _resource_mgr->get_gps_ctrl(); BOOST_FOREACH(const std::string &name, gps_ctrl->get_sensors()) { _tree->create(mb_path / "sensors" / name) -- cgit v1.2.3