diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2014-07-28 09:13:02 -0700 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2014-07-28 09:13:02 -0700 |
commit | cc6414ebcfa637cac5a66872c20848c30f2ee987 (patch) | |
tree | bb762a55d1b8c6ca2dc84df06b39d87dfc2ba38e /host/utils | |
parent | 9eb403f4299ea036a8fff2dc22209d3ae06374ed (diff) | |
download | uhd-cc6414ebcfa637cac5a66872c20848c30f2ee987.tar.gz uhd-cc6414ebcfa637cac5a66872c20848c30f2ee987.tar.bz2 uhd-cc6414ebcfa637cac5a66872c20848c30f2ee987.zip |
usrp_burn_mb_eeprom: write all changes to EEPROM at once
* Manually applied 1f848914a09795a37156968cc7a5dd11fcb869d3 to master due to merge conflict
Diffstat (limited to 'host/utils')
-rw-r--r-- | host/utils/usrp_burn_mb_eeprom.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/host/utils/usrp_burn_mb_eeprom.cpp b/host/utils/usrp_burn_mb_eeprom.cpp index de74d6807..92df9d7d4 100644 --- a/host/utils/usrp_burn_mb_eeprom.cpp +++ b/host/utils/usrp_burn_mb_eeprom.cpp @@ -93,13 +93,14 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << boost::format(" EEPROM [\"%s\"] is \"%s\"") % keys_vec[i] % mb_eeprom[keys_vec[i]] << std::endl; } std::cout << std::endl; + mb_eeprom = uhd::usrp::mboard_eeprom_t(); for(size_t i = 0; i < vals_vec.size(); i++){ if(vals_vec[i] != ""){ - uhd::usrp::mboard_eeprom_t mb_eeprom; mb_eeprom[keys_vec[i]] = vals_vec[i]; + mb_eeprom[keys_vec[i]] = vals_vec[i]; std::cout << boost::format("Setting EEPROM [\"%s\"] to \"%s\"...") % keys_vec[i] % vals_vec[i] << std::endl; - tree->access<uhd::usrp::mboard_eeprom_t>("/mboards/0/eeprom").set(mb_eeprom); } } + tree->access<uhd::usrp::mboard_eeprom_t>("/mboards/0/eeprom").set(mb_eeprom); std::cout << "Power-cycle the USRP device for the changes to take effect." << std::endl; std::cout << std::endl; |