mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-03-27 01:45:28 +01:00
Fix bugs
This commit is contained in:
parent
7269a0ea12
commit
04823abb83
@ -162,7 +162,7 @@ private:
|
|||||||
SoapySDR::RangeList bandwidthRange = dev->getBandwidthRange(SOAPY_SDR_RX, channelId);
|
SoapySDR::RangeList bandwidthRange = dev->getBandwidthRange(SOAPY_SDR_RX, channelId);
|
||||||
|
|
||||||
txtBwList = "";
|
txtBwList = "";
|
||||||
|
bandwidthList.clear();
|
||||||
bandwidthList.push_back(-1);
|
bandwidthList.push_back(-1);
|
||||||
txtBwList += "Auto";
|
txtBwList += "Auto";
|
||||||
txtBwList += '\0';
|
txtBwList += '\0';
|
||||||
@ -212,7 +212,7 @@ private:
|
|||||||
if(config.conf["devices"][name].contains("bandwidth")) {
|
if(config.conf["devices"][name].contains("bandwidth")) {
|
||||||
uiBandwidthId = config.conf["devices"][name]["bandwidth"];
|
uiBandwidthId = config.conf["devices"][name]["bandwidth"];
|
||||||
} else if(bandwidthList.size() > 1) {
|
} else if(bandwidthList.size() > 1) {
|
||||||
uiBandwidthId = bandwidthList[0];
|
uiBandwidthId = 0;
|
||||||
}
|
}
|
||||||
if (hasAgc && config.conf["devices"][name].contains("agc")) {
|
if (hasAgc && config.conf["devices"][name].contains("agc")) {
|
||||||
agc = config.conf["devices"][name]["agc"];
|
agc = config.conf["devices"][name]["agc"];
|
||||||
@ -234,7 +234,7 @@ private:
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
if(bandwidthList.size() > 1)
|
if(bandwidthList.size() > 1)
|
||||||
uiBandwidthId = bandwidthList[0];
|
uiBandwidthId = 0;
|
||||||
if (hasAgc) {
|
if (hasAgc) {
|
||||||
agc = false;
|
agc = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user