fix form evaluation for optional fields

This commit is contained in:
Jakob Ketterl
2021-03-24 23:17:50 +01:00
parent 6ddced4689
commit 19496d46a3
13 changed files with 40 additions and 31 deletions

View File

@@ -58,9 +58,9 @@ class PerseussdrDeviceDescription(DirectSourceDeviceDescription):
CheckboxInput("wideband", "Disable analog filters"),
]
def getOptionalKeys(self):
def getDeviceOptionalKeys(self):
# no rf_gain
return [key for key in super().getOptionalKeys() if key != "rf_gain"] + [
return [key for key in super().getDeviceOptionalKeys() if key != "rf_gain"] + [
"attenuator",
"adc_preamp",
"adc_dither",