mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-12 21:42:51 +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();
|
channels.clear();
|
||||||
auto subdevs = dev->get_rx_subdev_spec();
|
auto subdevs = dev->get_rx_subdev_spec();
|
||||||
for (int i = 0; i < subdevs.size(); i++) {
|
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());
|
sprintf(buf, "%s [%s]", dev->get_rx_subdev_name(i).c_str(), slot.c_str());
|
||||||
channels.define(buf, buf, buf);
|
channels.define(buf, buf, buf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user