From a79b34127005854bf99b5aa7b5658cbf1172af6f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 20 Apr 2022 11:58:15 +0200 Subject: 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 ``` --- host/utils/uhd_usrp_probe.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host/utils/uhd_usrp_probe.cpp') 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(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"))) { -- cgit v1.2.3