Fixed missing label bug of soapysdr

This commit is contained in:
Ryzerth 2020-10-05 18:20:27 +02:00
parent eff7bbdd5a
commit 14a8e81662

View File

@ -55,9 +55,11 @@ public:
void refresh() {
devList = SoapySDR::Device::enumerate();
txtDevList = "";
int i = 0;
for (auto& dev : devList) {
txtDevList += dev["label"];
txtDevList += dev["label"] != "" ? dev["label"] : dev["driver"];
txtDevList += '\0';
i++;
}
}