aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/usrp1_init_eeprom.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-29 13:02:42 -0700
committerJosh Blum <josh@joshknows.com>2011-06-29 13:02:42 -0700
commit1ade1f94cb5aaf038d4914fb5cece82f055b8f0e (patch)
treefbcba3d8f60f2e15ec45a8daa039fac8b9f30e18 /host/utils/usrp1_init_eeprom.cpp
parent35a0bce9f01e354c527806b4c8f6f2ef493db2f6 (diff)
downloaduhd-1ade1f94cb5aaf038d4914fb5cece82f055b8f0e.tar.gz
uhd-1ade1f94cb5aaf038d4914fb5cece82f055b8f0e.tar.bz2
uhd-1ade1f94cb5aaf038d4914fb5cece82f055b8f0e.zip
uhd: implement prop tree usage in utils
Diffstat (limited to 'host/utils/usrp1_init_eeprom.cpp')
-rw-r--r--host/utils/usrp1_init_eeprom.cpp6
1 files changed, 3 insertions, 3 deletions
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 <uhd/utils/safe_main.hpp>
#include <uhd/device.hpp>
-#include <uhd/usrp/device_props.hpp>
+#include <uhd/property_tree.hpp>
#include <boost/program_options.hpp>
#include <boost/format.hpp>
#include <iostream>
@@ -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<std::string>();
+ uhd::property_tree::sptr tree = (*dev)[0].as<uhd::property_tree::sptr>();
+ tree->access<std::string>("/mboards/0/load_eeprom").set(vm["image"].as<std::string>());
}