Skip to content

Commit a987c11

Browse files
fix crash when USRP has two frontends named the same
1 parent f1339f0 commit a987c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source_modules/usrp_source/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class USRPSourceModule : public ModuleManager::Instance {
111111
channels.clear();
112112
auto subdevs = dev->get_rx_subdev_spec();
113113
for (int i = 0; i < subdevs.size(); i++) {
114-
std::string slot = subdevs[i].db_name;
114+
std::string slot = subdevs[i].db_name + ',' + subdevs[i].sd_name;
115115
sprintf(buf, "%s [%s]", dev->get_rx_subdev_name(i).c_str(), slot.c_str());
116116
channels.define(buf, buf, buf);
117117
}

0 commit comments

Comments
 (0)