From 1ade1f94cb5aaf038d4914fb5cece82f055b8f0e Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 29 Jun 2011 13:02:42 -0700 Subject: uhd: implement prop tree usage in utils --- host/utils/usrp1_init_eeprom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (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 39f091af4..5bc07daf6 100644 --- a/host/utils/usrp1_init_eeprom.cpp +++ b/host/utils/usrp1_init_eeprom.cpp @@ -17,7 +17,7 @@ #include #include -#include +#include #include #include #include @@ -65,8 +65,8 @@ 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]); - wax::obj mb = (*dev)[uhd::usrp::DEVICE_PROP_MBOARD]; - mb[std::string("load_eeprom")] = vm["image"].as(); + uhd::property_tree::sptr tree = (*dev)[0].as(); + tree->access("/mboards/0/load_eeprom").set(vm["image"].as()); } -- cgit v1.2.3