aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/n230/n230_impl.cpp
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2016-01-06 10:03:29 -0800
committerAshish Chaudhari <ashish@ettus.com>2016-01-06 10:03:29 -0800
commit04a4d6348bff100305bb7481d652c7170b8ff62c (patch)
tree1ad2dae096d3fd3682dab8c029e4aef0b70ecd81 /host/lib/usrp/n230/n230_impl.cpp
parent81bbb57c06feaa05406ba86abc237a2e80841226 (diff)
downloaduhd-04a4d6348bff100305bb7481d652c7170b8ff62c.tar.gz
uhd-04a4d6348bff100305bb7481d652c7170b8ff62c.tar.bz2
uhd-04a4d6348bff100305bb7481d652c7170b8ff62c.zip
n230: Fixed GPSDO detection logic
Diffstat (limited to 'host/lib/usrp/n230/n230_impl.cpp')
-rw-r--r--host/lib/usrp/n230/n230_impl.cpp5
1 files changed, 2 insertions, 3 deletions
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<sensor_value_t>(mb_path / "sensors" / name)