Corrected the way gain was being set for SDRPlay.
This commit is contained in:
parent
ec61b85afc
commit
d83c934b95
|
@ -610,7 +610,7 @@ class NRSC5_DUI(object):
|
|||
|
||||
# set gain if auto gain is not selected
|
||||
if (not self.cbAutoGain.get_active()):
|
||||
self.streamInfo["Gain"] = self.spinGain.get_value()
|
||||
self.streamInfo["Gain"] = round(self.spinGain.get_value(),2)
|
||||
self.nrsc5Args.append("-g")
|
||||
self.nrsc5Args.append(str(self.streamInfo["Gain"]))
|
||||
|
||||
|
@ -1119,7 +1119,7 @@ class NRSC5_DUI(object):
|
|||
|
||||
if (self.cbAutoGain.get_active()):
|
||||
self.spinGain.set_value(self.streamInfo["Gain"])
|
||||
self.lblGain.set_label("{:2.1f}dB".format(self.streamInfo["Gain"]))
|
||||
self.lblGain.set_label("{:2.2f}dB".format(self.streamInfo["Gain"]))
|
||||
|
||||
# second param is lot id, if -1, show cover, otherwise show cover
|
||||
# technically we should show the file with the matching lot id
|
||||
|
|
|
@ -10,8 +10,9 @@
|
|||
<property name="page_increment">1</property>
|
||||
</object>
|
||||
<object class="GtkAdjustment" id="adjGain">
|
||||
<property name="lower">0.00</property>
|
||||
<property name="upper">49.60</property>
|
||||
<property name="step_increment">0.10</property>
|
||||
<property name="step_increment">0.01</property>
|
||||
<property name="page_increment">1</property>
|
||||
</object>
|
||||
<object class="GtkAdjustment" id="adjPPM">
|
||||
|
@ -1430,7 +1431,7 @@
|
|||
<property name="primary_icon_activatable">False</property>
|
||||
<property name="secondary_icon_activatable">False</property>
|
||||
<property name="adjustment">adjGain</property>
|
||||
<property name="digits">1</property>
|
||||
<property name="digits">2</property>
|
||||
<property name="snap_to_ticks">True</property>
|
||||
<property name="numeric">True</property>
|
||||
</object>
|
||||
|
|
Loading…
Reference in New Issue