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/usrp1_init_eeprom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/utils/usrp1_init_eeprom.cpp') diff --git a/host/utils/usrp1_init_eeprom.cpp b/host/utils/usrp1_init_eeprom.cpp index 5bc07daf6..1778d5f9d 100644 --- a/host/utils/usrp1_init_eeprom.cpp +++ b/host/utils/usrp1_init_eeprom.cpp @@ -65,7 +65,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << "Writing EEPROM data..." << std::endl; //uhd::device_addrs_t devs = uhd::device::find(found_addrs[i]); uhd::device::sptr dev = uhd::device::make(found_addrs[i]); - uhd::property_tree::sptr tree = (*dev)[0].as(); + uhd::property_tree::sptr tree = dev->get_tree(); tree->access("/mboards/0/load_eeprom").set(vm["image"].as()); } -- cgit v1.2.3