diff options
author | Josh Blum <josh@joshknows.com> | 2011-07-20 14:13:37 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-07-20 14:13:37 -0700 |
commit | 9851de0713b4c6d14a870a1d8816451ca518ff52 (patch) | |
tree | 41d1ff8e4d4febd8babfb46a9779def2c2314a2b /host/utils/uhd_usrp_probe.cpp | |
parent | 117f6a3359a8a21acf396b0e0f084c32770e0b3a (diff) | |
download | uhd-9851de0713b4c6d14a870a1d8816451ca518ff52.tar.gz uhd-9851de0713b4c6d14a870a1d8816451ca518ff52.tar.bz2 uhd-9851de0713b4c6d14a870a1d8816451ca518ff52.zip |
uhd: add get_tree call directly to the device
Does away with the need for wax cast to get the tree.
You can still do this but it will eventually be removed.
There was some compiler issue on ubuntu 10.04 with any cast and a shared ptr to property tree.
Diffstat (limited to 'host/utils/uhd_usrp_probe.cpp')
-rw-r--r-- | host/utils/uhd_usrp_probe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/utils/uhd_usrp_probe.cpp b/host/utils/uhd_usrp_probe.cpp index cb6d78255..6c5f451cd 100644 --- a/host/utils/uhd_usrp_probe.cpp +++ b/host/utils/uhd_usrp_probe.cpp @@ -192,7 +192,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ } device::sptr dev = device::make(vm["args"].as<std::string>()); - property_tree::sptr tree = (*dev)[0].as<property_tree::sptr>(); + property_tree::sptr tree = dev->get_tree(); if (vm.count("tree") != 0) print_tree("/", tree); else std::cout << make_border(get_device_pp_string(tree)) << std::endl; |