From 9851de0713b4c6d14a870a1d8816451ca518ff52 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 20 Jul 2011 14:13:37 -0700 Subject: 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. --- host/utils/uhd_usrp_probe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/utils/uhd_usrp_probe.cpp') 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()); - property_tree::sptr tree = (*dev)[0].as(); + 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; -- cgit v1.2.3