mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-13 03:37:10 +01:00
Fixed missing label bug of soapysdr
This commit is contained in:
parent
eff7bbdd5a
commit
14a8e81662
@ -55,9 +55,11 @@ public:
|
|||||||
void refresh() {
|
void refresh() {
|
||||||
devList = SoapySDR::Device::enumerate();
|
devList = SoapySDR::Device::enumerate();
|
||||||
txtDevList = "";
|
txtDevList = "";
|
||||||
|
int i = 0;
|
||||||
for (auto& dev : devList) {
|
for (auto& dev : devList) {
|
||||||
txtDevList += dev["label"];
|
txtDevList += dev["label"] != "" ? dev["label"] : dev["driver"];
|
||||||
txtDevList += '\0';
|
txtDevList += '\0';
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user