aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2022-04-20 11:58:15 +0200
committerAaron Rossetto <aaron.rossetto@ni.com>2022-06-10 13:24:03 -0500
commita79b34127005854bf99b5aa7b5658cbf1172af6f (patch)
treea91fc038967781ab13014f5228e698c88c7bfe38
parenta14b8c6a2eff7d780fe2915c0646502ca7324a43 (diff)
downloaduhd-a79b34127005854bf99b5aa7b5658cbf1172af6f.tar.gz
uhd-a79b34127005854bf99b5aa7b5658cbf1172af6f.tar.bz2
uhd-a79b34127005854bf99b5aa7b5658cbf1172af6f.zip
utils: uhd_usrp_probe: Add DB rev to output
When running uhd_usrp_probe, this adds the daughterboard revision if available: ``` | _____________________________________________________ | / | | RX Dboard: 0/Radio#0 | | ID: TwinRX Rev C (0x0095) | | Serial: ABC1234 | | Revision: 4 ```
-rw-r--r--host/utils/uhd_usrp_probe.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/utils/uhd_usrp_probe.cpp b/host/utils/uhd_usrp_probe.cpp
index 03125a5ae..d805b3aa6 100644
--- a/host/utils/uhd_usrp_probe.cpp
+++ b/host/utils/uhd_usrp_probe.cpp
@@ -165,6 +165,9 @@ static std::string get_dboard_pp_string(
ss << boost::format("ID: %s") % db_eeprom.id.to_pp_string() << std::endl;
if (not db_eeprom.serial.empty())
ss << boost::format("Serial: %s") % db_eeprom.serial << std::endl;
+ if (not db_eeprom.revision.empty()) {
+ ss << "Revision: " << db_eeprom.revision << std::endl;
+ }
if (type == "TX" and tree->exists(path / "gdb_eeprom")) {
usrp::dboard_eeprom_t gdb_eeprom =
tree->access<usrp::dboard_eeprom_t>(path / "gdb_eeprom").get();
@@ -172,6 +175,9 @@ static std::string get_dboard_pp_string(
ss << boost::format("ID: %s") % gdb_eeprom.id.to_pp_string() << std::endl;
if (not gdb_eeprom.serial.empty())
ss << boost::format("Serial: %s") % gdb_eeprom.serial << std::endl;
+ if (not gdb_eeprom.revision.empty()) {
+ ss << "Revision: " << gdb_eeprom.revision << std::endl;
+ }
}
}
if (tree->exists(path / (prefix + "_frontends"))) {