diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-07-17 09:04:02 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-07-17 10:44:18 -0700 |
commit | de4545ed4f59f89d6123377b6bdafa59aed79238 (patch) | |
tree | e763dc4ac400135f7b0c797745cdebd3c58009a9 /host/lib/usrp/multi_usrp.cpp | |
parent | b75ca6cd9143a730d827c3b5e353a9086a79d210 (diff) | |
download | uhd-de4545ed4f59f89d6123377b6bdafa59aed79238.tar.gz uhd-de4545ed4f59f89d6123377b6bdafa59aed79238.tar.bz2 uhd-de4545ed4f59f89d6123377b6bdafa59aed79238.zip |
multi_usrp: Fix get_usrp_tx_info() for MPMD devices
Diffstat (limited to 'host/lib/usrp/multi_usrp.cpp')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 1d8a0fd7a..de1f760e2 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -454,7 +454,7 @@ public: const auto mb_eeprom = _tree->access<mboard_eeprom_t>(mb_root(mcp.mboard) / "eeprom").get(); usrp_info["mboard_id"] = _tree->access<std::string>(mb_root(mcp.mboard) / "name").get(); - usrp_info["mboard_name"] = mb_eeprom["name"]; + usrp_info["mboard_name"] = mb_eeprom.get("name", "n/a"); usrp_info["mboard_serial"] = mb_eeprom["serial"]; usrp_info["tx_subdev_name"] = _tree->access<std::string>(tx_rf_fe_root(chan) / "name").get(); usrp_info["tx_subdev_spec"] = _tree->access<subdev_spec_t>(mb_root(mcp.mboard) / "tx_subdev_spec").get().to_string(); |