fix crash when USRP has two frontends named the same

pull/1338/head
AlexandreRouma 2024-02-17 17:37:37 +01:00
rodzic f1339f08cf
commit a987c112a3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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