aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-11-04 23:23:47 +0000
committerJosh Blum <josh@joshknows.com>2011-11-04 23:23:47 +0000
commit9c598203327943b6ec042b031849ec6d7d907479 (patch)
tree47cc69e02ae6bf474a7cc0b6f472630678a2e6dc /host/lib/usrp
parent0e7c8c388a5dcbd70631526b42e08178300b93c4 (diff)
downloaduhd-9c598203327943b6ec042b031849ec6d7d907479.tar.gz
uhd-9c598203327943b6ec042b031849ec6d7d907479.tar.bz2
uhd-9c598203327943b6ec042b031849ec6d7d907479.zip
e100/b100: init tree before filling it
git log
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/b100/b100_impl.cpp2
-rw-r--r--host/lib/usrp/e100/e100_impl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/b100/b100_impl.cpp b/host/lib/usrp/b100/b100_impl.cpp
index 6bebc75ab..c15816cc2 100644
--- a/host/lib/usrp/b100/b100_impl.cpp
+++ b/host/lib/usrp/b100/b100_impl.cpp
@@ -139,6 +139,7 @@ UHD_STATIC_BLOCK(register_b100_device){
* Structors
**********************************************************************/
b100_impl::b100_impl(const device_addr_t &device_addr){
+ _tree = property_tree::make();
//extract the FPGA path for the B100
std::string b100_fpga_image = find_image_path(
@@ -226,7 +227,6 @@ b100_impl::b100_impl(const device_addr_t &device_addr){
////////////////////////////////////////////////////////////////////
// Initialize the properties tree
////////////////////////////////////////////////////////////////////
- _tree = property_tree::make();
_tree->create<std::string>("/name").set("B-Series Device");
const fs_path mb_path = "/mboards/0";
_tree->create<std::string>(mb_path / "name").set("B100 (B-Hundo)");
diff --git a/host/lib/usrp/e100/e100_impl.cpp b/host/lib/usrp/e100/e100_impl.cpp
index 8fe9081b1..2e3a635a6 100644
--- a/host/lib/usrp/e100/e100_impl.cpp
+++ b/host/lib/usrp/e100/e100_impl.cpp
@@ -106,6 +106,7 @@ UHD_STATIC_BLOCK(register_e100_device){
* Structors
**********************************************************************/
e100_impl::e100_impl(const uhd::device_addr_t &device_addr){
+ _tree = property_tree::make();
//setup the main interface into fpga
const std::string node = device_addr["node"];
@@ -179,7 +180,6 @@ e100_impl::e100_impl(const uhd::device_addr_t &device_addr){
////////////////////////////////////////////////////////////////////
// Initialize the properties tree
////////////////////////////////////////////////////////////////////
- _tree = property_tree::make();
_tree->create<std::string>("/name").set("E-Series Device");
const fs_path mb_path = "/mboards/0";
_tree->create<std::string>(mb_path / "name").set(str(boost::format("%s (euewanee)") % model));