From a987c112a3e6f4ae588f1b887b6e4102d41d571a Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Sat, 17 Feb 2024 17:37:37 +0100 Subject: [PATCH] fix crash when USRP has two frontends named the same --- source_modules/usrp_source/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source_modules/usrp_source/src/main.cpp b/source_modules/usrp_source/src/main.cpp index 1718515c..07ac2a73 100644 --- a/source_modules/usrp_source/src/main.cpp +++ b/source_modules/usrp_source/src/main.cpp @@ -111,7 +111,7 @@ public: channels.clear(); auto subdevs = dev->get_rx_subdev_spec(); for (int i = 0; i < subdevs.size(); i++) { - std::string slot = subdevs[i].db_name; + std::string slot = subdevs[i].db_name + ',' + subdevs[i].sd_name; sprintf(buf, "%s [%s]", dev->get_rx_subdev_name(i).c_str(), slot.c_str()); channels.define(buf, buf, buf); }