mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 04:37:37 +01:00
fix crash when USRP has two frontends named the same
This commit is contained in:
parent
f1339f08cf
commit
a987c112a3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user