fix crash when USRP has two frontends named the same

This commit is contained in:
AlexandreRouma 2024-02-17 17:37:37 +01:00
parent f1339f08cf
commit a987c112a3

View File

@ -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);
}