From 8c6becc521f4adc282df90d77e41c13e19622099 Mon Sep 17 00:00:00 2001 From: michael-west Date: Thu, 24 Jan 2019 10:01:41 -0800 Subject: utils: Add check for gdb_eeprom before accessing Signed-off-by: michael-west --- host/utils/uhd_usrp_probe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 8f60b211f..452753aeb 100644 --- a/host/utils/uhd_usrp_probe.cpp +++ b/host/utils/uhd_usrp_probe.cpp @@ -163,7 +163,7 @@ 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 (type == "TX") { + if (type == "TX" and tree->exists(path / "gdb_eeprom")) { usrp::dboard_eeprom_t gdb_eeprom = tree->access(path / "gdb_eeprom").get(); if (gdb_eeprom.id != usrp::dboard_id_t::none()) -- cgit v1.2.3