From 14a8e8166277d0f8215a25bb7a96869e3f68680c Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Mon, 5 Oct 2020 18:20:27 +0200 Subject: [PATCH] Fixed missing label bug of soapysdr --- soapy/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/soapy/src/main.cpp b/soapy/src/main.cpp index 5bb6773..a55c983 100644 --- a/soapy/src/main.cpp +++ b/soapy/src/main.cpp @@ -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++; } }