From 04823abb83a9c80563de7e9784a8fb8bedf6041c Mon Sep 17 00:00:00 2001 From: cropinghigh Date: Sat, 26 Dec 2020 21:36:16 +0300 Subject: [PATCH] Fix bugs --- soapy_source/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/soapy_source/src/main.cpp b/soapy_source/src/main.cpp index e7949b7..9b88fb7 100644 --- a/soapy_source/src/main.cpp +++ b/soapy_source/src/main.cpp @@ -162,7 +162,7 @@ private: SoapySDR::RangeList bandwidthRange = dev->getBandwidthRange(SOAPY_SDR_RX, channelId); txtBwList = ""; - + bandwidthList.clear(); bandwidthList.push_back(-1); txtBwList += "Auto"; txtBwList += '\0'; @@ -212,7 +212,7 @@ private: if(config.conf["devices"][name].contains("bandwidth")) { uiBandwidthId = config.conf["devices"][name]["bandwidth"]; } else if(bandwidthList.size() > 1) { - uiBandwidthId = bandwidthList[0]; + uiBandwidthId = 0; } if (hasAgc && config.conf["devices"][name].contains("agc")) { agc = config.conf["devices"][name]["agc"]; @@ -234,7 +234,7 @@ private: i++; } if(bandwidthList.size() > 1) - uiBandwidthId = bandwidthList[0]; + uiBandwidthId = 0; if (hasAgc) { agc = false; }