diff options
-rw-r--r-- | host/include/uhd/types/eeprom.hpp | 4 | ||||
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_impl.cpp | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/host/include/uhd/types/eeprom.hpp b/host/include/uhd/types/eeprom.hpp index 814d429c8..19729f396 100644 --- a/host/include/uhd/types/eeprom.hpp +++ b/host/include/uhd/types/eeprom.hpp @@ -9,11 +9,11 @@ #include <map> #include <string> +#include <vector> namespace uhd { - typedef std::map<std::string, std::string> eeprom_map_t; - + typedef std::map<std::string, std::vector<uint8_t>> eeprom_map_t; } /* namespace uhd */ diff --git a/host/lib/usrp/mpmd/mpmd_impl.cpp b/host/lib/usrp/mpmd/mpmd_impl.cpp index f0498cf99..8deac2743 100644 --- a/host/lib/usrp/mpmd/mpmd_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_impl.cpp @@ -171,7 +171,10 @@ namespace { .add_coerced_subscriber([mb](const uhd::usrp::mboard_eeprom_t& mb_eeprom){ eeprom_map_t eeprom_map; for (const auto& key : mb_eeprom.keys()) { - eeprom_map[key] = mb_eeprom[key]; + eeprom_map[key] = std::vector<uint8_t>( + mb_eeprom[key].cbegin(), + mb_eeprom[key].cend() + ); } mb->rpc->notify_with_token("set_mb_eeprom", eeprom_map); }) |