diff options
Diffstat (limited to 'host/utils/usrp_burn_db_eeprom.cpp')
-rw-r--r-- | host/utils/usrp_burn_db_eeprom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/utils/usrp_burn_db_eeprom.cpp b/host/utils/usrp_burn_db_eeprom.cpp index 7ebbe7756..9dfce141b 100644 --- a/host/utils/usrp_burn_db_eeprom.cpp +++ b/host/utils/usrp_burn_db_eeprom.cpp @@ -62,7 +62,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //make the device and extract the dboard w/ property device::sptr dev = device::make(args); - uhd::property_tree::sptr tree = (*dev)[0].as<uhd::property_tree::sptr>(); + uhd::property_tree::sptr tree = dev->get_tree(); const uhd::property_tree::path_type db_root = "/mboards/0/dboards"; std::vector<std::string> dboard_names = tree->list(db_root); if (dboard_names.size() == 1 and slot.empty()) slot = dboard_names.front(); |