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/usrp1 | |
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/usrp1')
-rw-r--r-- | host/lib/usrp/usrp1/mboard_impl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp1/mboard_impl.cpp b/host/lib/usrp/usrp1/mboard_impl.cpp index 952da8dce..c1f0f1d38 100644 --- a/host/lib/usrp/usrp1/mboard_impl.cpp +++ b/host/lib/usrp/usrp1/mboard_impl.cpp @@ -378,8 +378,10 @@ void usrp1_impl::mboard_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_B1XX); + // 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_B1XX); + _iface->mb_eeprom = mboard_eeprom_t(*_iface, mboard_eeprom_t::MAP_B1XX); return; default: UHD_THROW_PROP_SET_ERROR(); |