Skip to content

Commit

Permalink
fix crash when USRP has two frontends named the same
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Feb 17, 2024
1 parent f1339f0 commit a987c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source_modules/usrp_source/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class USRPSourceModule : public ModuleManager::Instance {
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);
}
Expand Down

0 comments on commit a987c11

Please sign in to comment.