diff options
author | Josh Blum <josh@joshknows.com> | 2010-11-05 17:56:23 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-11-05 17:56:23 -0700 |
commit | 1a86e65a18ac7005f0a4dae3bc7fc26e8041267c (patch) | |
tree | 77c4e71f6e9fbe8143b4dbc376611985238eec86 /host/lib/usrp/usrp2 | |
parent | 94a492dc40a6450ada3fe34a7440c31077d9690e (diff) | |
download | uhd-1a86e65a18ac7005f0a4dae3bc7fc26e8041267c.tar.gz uhd-1a86e65a18ac7005f0a4dae3bc7fc26e8041267c.tar.bz2 uhd-1a86e65a18ac7005f0a4dae3bc7fc26e8041267c.zip |
uhd: for eeprom writeback, write and set only those values changed
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r-- | host/lib/usrp/usrp2/mboard_impl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp index 079f096cb..df98ba275 100644 --- a/host/lib/usrp/usrp2/mboard_impl.cpp +++ b/host/lib/usrp/usrp2/mboard_impl.cpp @@ -314,8 +314,10 @@ void usrp2_mboard_impl::set(const wax::obj &key, const wax::obj &val){ return; case MBOARD_PROP_EEPROM_MAP: - _iface->mb_eeprom = val.as<mboard_eeprom_t>(); - _iface->mb_eeprom.commit(*_iface, mboard_eeprom_t::MAP_NXXX); + // Step1: commit the map, writing only those values set. + // Step2: readback the entire eeprom map into the iface. + val.as<mboard_eeprom_t>().commit(*_iface, mboard_eeprom_t::MAP_NXXX); + _iface->mb_eeprom = mboard_eeprom_t(*_iface, mboard_eeprom_t::MAP_NXXX); return; default: UHD_THROW_PROP_SET_ERROR(); |