make both gains available for sdrplay

This commit is contained in:
Jakob Ketterl
2019-05-19 22:10:11 +02:00
parent 92abef7172
commit 8091831b1f
3 changed files with 16 additions and 8 deletions

View File

@ -81,7 +81,7 @@ class OpenWebRxClient(object):
def setParams(self, params):
# only the keys in the protected property manager can be overridden from the web
protected = self.sdr.getProps().collect("samp_rate", "center_freq", "rf_gain", "type") \
protected = self.sdr.getProps().collect("samp_rate", "center_freq", "rf_gain", "type", "if_gain") \
.defaults(PropertyManager.getSharedInstance())
for key, value in params.items():
protected[key] = value