Settings UI even better, fix device config not right w.r.t real antenna presence

This commit is contained in:
vsonnier
2017-08-24 21:11:50 +02:00
parent f5f4a80f23
commit 2c20f728d5
3 changed files with 49 additions and 19 deletions
+7
View File
@@ -152,6 +152,10 @@ void SDRDevicesDialog::refreshDeviceProperties() {
if (found_i != antennaOpts.end()) {
antennaToSelect = currentSetAntenna;
}
else {
//erroneous antenna name, re-write device config with the first choice of teh list.
devConfig->setAntennaName(antennaToSelect);
}
//build device settings
for (std::string antenna : antennaOpts) {
@@ -169,6 +173,9 @@ void SDRDevicesDialog::refreshDeviceProperties() {
deviceArgs["antenna"] = antennasArg;
} //end if more than 1 antenna
else {
devConfig->setAntennaName("");
}
//A-4) Sample_rate:
long currentSampleRate = wxGetApp().getSampleRate();